I am trying to find a simple “knob” but I cannot find any documentation or any thread on this.
There is this UI.DefaultControls.Resources-knob that is a sprite as it says, and I can understand that having a slider or two (one vertical / one horizontal ) affecting the same value, with a rotated circular sprite would have almost /or near the same “see ‘n’ feel” of a knob, but is this the way to have one?
hi there,
AFAIK there is no rotating knob which you can turn.
But if you need to create one, it’s possible.
Calculate the direction of press compared to your UI sprite or button, then calculate angle and use it to rotate your UI sprite around.
Thanx,
I’ve tried, failed, searched better the web and found:
https://bitbucket.org/ddreaper/unity-ui-extensions/downloads
1 Like
Beat me to it @PSpiroz
Yes, the UIKnob control was added to the UI Extensions project a while ago. You may also like the Radial Layout if you like things going round and round ![]()