class
RangeAttribute
public class RangeAttribute : Attribute Mark this property as a ranged float/int. In inspector we'll be able to create a slider instead of a text entry.
Constructors
RangeAttribute(Single min, Single max) RangeAttribute(Single min, Single max, Boolean clamped, Boolean slider) RangeAttribute(Single min, Single max, Single step, Boolean clamped, Boolean slider) Properties
| Name | Type | Description |
|---|---|---|
Min | Single | The minimum value of the range. |
Max | Single | The maximum value of the range. |
Slider | Boolean | Whether or not a slider should be shown for this range. |
Clamped | Boolean | Whether or not the value should be clamped to the range. If false, the user can manually enter values outside the range if they wish. |
Step | Single |