Class PropertyRangeAttribute
Attribute to specify a range for a property. Only works for float and int.
[AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = true)]
public class PropertyRangeAttribute : Attribute
- Inheritance
-
PropertyRangeAttribute
Constructors
PropertyRangeAttribute(float, float)
public PropertyRangeAttribute(float min, float max)
Parameters
PropertyRangeAttribute(RangeAttribute)
public PropertyRangeAttribute(RangeAttribute range)
Parameters
range
RangeAttribute
Properties
Max
public float Max { get; }
Property Value
Min
public float Min { get; }