How to Create a Draggable Protractor on Unity UI

I was wondering if anyone knew what would be the best way to implement a math protractor with a draggable angle using Unity’s UI system?

Any suggestions?

Can’t you just use the picture? Apply it onto a UI Image?

I’ll take a stab at it:

Take your initial image and remove your needle from it in something like Photoshop or Pixlr, et al… Import your “background image”, as a Sprite (in the import settings). Now you should be able to apply your protactor image to a game object with a UI Image script attached.

Now the tricky part, I think, is drawing the needle. I suppose you could use a gameobject with the LineRenderer component attached with a point originating at the center, bottom of your image object and then a second point (for the LineRenderer) perhaps where the mouse is using Input.mousePosition…

Best of luck! Let us know how you fare!