API ReferenceSandbox
public class Sandbox.RangeAttribute : System.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
Showing 3 constructors
No results match this filter.
Properties
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.
public float Sandbox.RangeAttribute.Max { get; set; }
The maximum value of the range.
public float Sandbox.RangeAttribute.Min { get; set; }
The minimum value of the range.
public bool Sandbox.RangeAttribute.Slider { get; set; }
Whether or not a slider should be shown for this range.
public float Sandbox.RangeAttribute.Step { get; set; }Obsolete
Obsolete: Use [Step] attribute instead
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.System |
| Doc ID | T:Sandbox.RangeAttribute |