API ReferenceSandbox
RangeAttributeclass
Mark this property as a ranged float/int. In inspector we'll be able to create a slider instead of a text entry.
Constructors3
Showing 3 constructors
No results match this filter.
Properties5
Showing 5 properties
public bool Sandbox.RangeAttribute.Clamped { get; set; }
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.
Returns:
bool—public float Sandbox.RangeAttribute.Max { get; set; }
The maximum value of the range.
Returns:
float—public float Sandbox.RangeAttribute.Min { get; set; }
The minimum value of the range.
Returns:
float—public bool Sandbox.RangeAttribute.Slider { get; set; }
Whether or not a slider should be shown for this range.
Returns:
bool—public float Sandbox.RangeAttribute.Step { get; set; }
Obsolete: Use [Step] attribute instead
Returns:
float—No results match this filter.