- Home /
EZGUI Rotating Knob?
I'm trying to make a rotating knob, aka a steering wheel, that rotates left and right when you drag over it? Can this be done with EZGUI?
Answer by robertbu · Jul 19, 2013 at 08:12 PM
I'm sure it can. How will depend on what you are using to display the wheel. If you are using an EZGUI control of some sort, you can use AddInputDelegate() or SetInputDeletate() to capture input to your control. The Pointer_Info will give you all the information you need to get the mouse/finger position in order to do the rotation. Depending on your needs, the structure provides you orgPos, devicePos, and inputDelta. If you are using a packed sprite, you'll have to handle the rotation in a more traditional Unity by adding a collider and using whatever input mechanics you need for your game.
Ok thanks! I think I get what your saying. Let me mull it over and I'll let you know how it worked out.
Your answer
![](https://koobas.hobune.stream/wayback/20220613110443im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Build & run to Android 2 Answers
EZ Gui positioning 1 Answer
Interface 3D 1 Answer
Orthographic objects follow in perspective 2 Answers
How can I make my scroll list scroll 1 item per button click? 1 Answer