Unity3d Click and Drag Gizmos

I have a bunch of stuff in the editor, is there a way to get the position of the gizmo when clicked on?

I looked at Furr2d and they have clickable gizmos, but I couldn't find how it was done in their code.

They do it with 2d objects and I will be using 3D objects. I suppose it will be basically the same. At first I thought I needed to create a game object for each giz, but when using Furr2d, they don't create any additional game objects since they click and drag their gizmos?

Does this need to be done with help ScreenToWorldPoint

or something similar?

+3


source to share


1 answer


If you need to know the default handle position, you can look at the Tools class . You should be able to get the value you want.



If you are using your own Handles , you can simply choose the return value.

0


source







All Articles