EditorGUI - Why is there no FloatSider?

There is, for example, an EditorGUI.IntSlider, so any idea why there is no EditorGUI.FloatSlider?

I need a range of 0.01 to 1.0 so although I could use an IntSlider of 1 to 100 and then divide by 100, it’s confusing to the user to see the wrong value displayed.

Is there a workaround?

Thanks

2 Answers

2

Use EditorGUI.Slider which uses floats

You probably want EditorGUI.Slider.

(Hooray for naming consistency, right?)

Heheheh :)