tenpn / ChestOfPropertyDrawers

A collection of small reusable Unity3D property drawers.
Other
70 stars 11 forks source link

Idea: Slider that snaps to certain values #7

Open Crushy opened 11 years ago

Crushy commented 11 years ago

Something that looks like this

[Range(1f, 10f, 0.5f)]
float values;

Where 1f is the minimum, 10f is the maximum and 0.5f is the step.

It would output a slider that can selects values such as 1, 1.5, 2, 2.5 ... 5.5 ... 9.5, 10, etc.

Congrats on the great idea of creating this repo btw :+1: