How do I create a custom handle to edit a box in the editor?
How do I go about adding a gizmo/handle to a custom gameobject so I can manipulate a rectangle around my object? Similar to sprite render or box collider. I want to be able to get the position and width/height during run time.
Answer by immeasurability · Dec 16, 2020 at 02:02 PM
desc - https://docs.unity3d.com/ScriptReference/IMGUI.Controls.BoxBoundsHandle.html code - https://docs.unity3d.com/ScriptReference/IMGUI.Controls.PrimitiveBoundsHandle.DrawHandle.html
Your answer
Follow this Question
Related Questions
Handles.ScaleHandle gizmo gui does not move? 0 Answers
Editor Scripting: Bounds editor with BoxCollider-like scene controls 2 Answers
Creating 3D box collider-like gizmo? 1 Answer
How do I execute code while dragging an ArcHandle? 0 Answers
Why the gizmo with +x axis on right side, and +z-axis towards computer is labelled as back? 0 Answers