class RangeAttribute : System.Attribute

robot_2Generated
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 specific range of values is desired.

Members

Instance Properties

Member NameSummary
MinThe minimum value of the range.
MaxThe maximum value of the range.
StepThe 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 value should be clamped within the specified range.