- Home /
Draggable handles
I would like to create handles which I can move around in order to use for waypoints. I notice that unity uses things like this:
Image for their hingje joints and the like. I am looking to emulate this. Currently I am using an empty gameobject with an icon, but this seems like it wouldn't be the best way to do it.
Can someone please point me in the right direction as to how to emulate the way that unity creates handles? Thank you for any help that you can provide.
In the past, I've used the empty GameObject method. It works for some things.
I haven't done another tool-heavy project since learning about it, but Unity seems to recommend the Handles class for this sort of thing. It's an editor script, usually built into a custom inspector, so read up on those if you haven't written any before.