Files
ApexSurgery/Assets/Oculus/Voice/Lib/Wit.ai/Scripts/Runtime/Utilities/DynamicRangeAttribute.cs
T
2025-07-04 20:33:06 +03:00

27 lines
770 B
C#

/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
using UnityEngine;
namespace Meta.WitAi.Utilities
{
public class DynamicRangeAttribute : PropertyAttribute
{
public string RangeProperty { get; private set; }
public float DefaultMin { get; private set; }
public float DefaultMax { get; private set; }
public DynamicRangeAttribute(string rangeProperty, float defaultMin = float.MinValue, float defaultMax = float.MaxValue)
{
DefaultMin = defaultMin;
DefaultMax = defaultMax;
RangeProperty = rangeProperty;
}
}
}