Slider Thumb Size

Hello.

What’s the correct way to control the size of the thumb in the GUI.HorizontalSlider (and GUI.VerticalSlider) function? I want it wider than the default thumb. I’ve tried giving it a GUIStyle and editing the border, padding, margin, overflow, and fixed width values, but none of them produced desirable results:

If I change the overflow value, I can make the thumb look bigger, but when interaction is concerned, only the small default area is still considered. Same with fixed width.

Thanks for any response!

You can’t vary the size of the slider’s thumb in response to changing values in the game, but you can do this with a scrollbar. The scrollbar controls have an additional size parameter that lets you specify the range of values the thumb occupies.

OK, thanks. Sounds a bit backwards but I’ll give it a try.