- Home /
How do I create a tool similiar to the object movement gizmo in unity
I have looked around a bit and haven't been successful on finding a way to give the user inside a running scene the same kind of object movement tool that is found inside the unity editor for the developer to move objects around. Does anyone know how to create a tool for the user to move objects around the scene?
Thanks!
Answer by Paulius-Liekis · Nov 07, 2012 at 09:05 AM
Look into Gizmos, Handles and Editor.OnSceneGUI classes.
Thanks Paulius. Your answer got me to googling and I found this posting on the unity developer network. http://answers.unity3d.com/questions/12685/how-to-create-handles-like-editor-gizmos-in-runtim.html
At the posting above the user named Panayiotis Lipiridis posted an example picture and the code of a gizmo he created inside of a running environment. I didn't actually get his gizmo to work though. I tried opening it in a new project but it had errors. If this solution worked it would probably be the best solution but as it stands the solution below is the best.
I also tried code I found at http://wiki.unity3d.com/index.php?title=FakeGizmoDemo. The code there produces glitchy looking arrows that allow you to be able to click on the arrow for movement. It will let the user move the object but you only have the ability to move the object in three directions. It does however look like it wouldnt be bad to add the other directions.
Your answer
![](https://koobas.hobune.stream/wayback/20220613083449im_/https://answers.unity.com/themes/thub/images/avi.jpg)