class RangeAttribute : System.Attribute

book_4_sparkGenerated
code_blocksInput

Description

The RangeAttribute class in the Sandbox namespace is used to mark a property as a ranged float or integer. This allows the property to be represented as a slider in the inspector, rather than a text entry. This attribute is particularly useful for properties where a range of values is expected, providing a more intuitive interface for users to select values.

Members

Instance Properties

Member NameSummary
MinGets or sets the minimum value of the range.
MaxGets or sets the maximum value of the range.
StepGets or sets the step value for the range, determining the increment between values.
SliderIndicates whether the range should be represented as a slider in the inspector.
ClampedIndicates whether the values should be clamped to the specified range.