using System;
namespace UnityEngine.Animations.Rigging
{
///
/// By default, appears as a numeric input field in the Inspector.
/// Decorate or fields with this attribute to make it display using a slider with the specified range.
/// See also .
///
[AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)]
public sealed class WeightRangeAttribute : PropertyAttribute
{
///
/// The smallest permissible value the weight may have.
///
public readonly float min = 0f;
///
/// The largest permissible value the weight may have.
///
public readonly float max = 1f;
///
/// Constructs a new instance with the specified range.
/// A value of for either end of the range will permit any value to be entered.
///
/// The smallest permissible value the weight may have.
/// The largest permissible value the weight may have.
public WeightRangeAttribute(float min, float max)
{
this.min = min;
this.max = max;
}
}
}