MinMaxSlider

[MinMaxSlider] renders a Vector property as a min/max pair with a slider.
[MinMaxSlider(0, 1)] _HeightRange ("Height Range", Vector) = (0.2,0.8,0,0)
[MinMaxSlider(n1, 1)] _SignedRange ("Signed Range", Vector) = (-0.5,0.5,0,0)
Syntax
[MinMaxSlider(max)]
[MinMaxSlider(min, max)]
Behavior
- The
xcomponent stores the minimum value. - The
ycomponent stores the maximum value. - The
zandwcomponents are preserved but not edited by the slider. - If a range bound is negative, prefix the number with
n, for examplen1for-1. - This attribute is intended for
Vectorproperties.
Example
Properties
{
[Group(Height)] [MinMaxSlider(0, 4)] _HeightRange ("Height Range", Vector) = (0.25,2,0,0)
}