I know there’s the [Range]
attribute so you can read one value between a min and a max.
But I’m looking to something to represent an attribute like the Inner / Outer Spot Angle
which allows you to use the same bar, but choosing 2 values that follow:
- Same as
[Range]
(min and max) - Accepts 2 values:
min
andmax
- input value
min
has the constraint of being always less or equal thanmax
Example from the Spot Light 2D
component:
Falloff Strength
is rendered as a [Range]
but I’m looking how to represent a Vector2
(or just a (float, float)
tuple) as the upper one (if possible)