The Gizmo Tool enables you to use gizmos as components. This project is useful for level editing and other tasks where simple visualization is needed. See the Wiki section of the repo for more detail.
- Draw Gizmos with a component for quick visualization in the editor.
- Use a custom Inspector to easily adjust gizmo properties.
- Supports most gizmo types.
- All scripts in this package only run in the editor and are excluded from builds.
- Sphere
- Wire Sphere
- Cube
- Wire Cube
- Mesh
- Wire Mesh
- Line
- Line List
- Line Strip
- Icon
- GUI Texture
- Ray
Since this package is excluded from builds, be mindful of controlling GizmoDrawer
with runtime scripts.
See Wiki/ExtendingBehaviour for a list of public members and suggested approaches.
- Open Unity package manager window.
- From the '+' menu in the top left corner, select 'Add package from git URL...'
- Copy and paste this repository's URL into the URL field.
- Attach the
GizmoDrawer
script to a GameObject in your scene. - Toggle the
drawOnSelectOnly
option to control whether the gizmo should be drawn only when the GameObject is selected. - Configure the gizmos properties with the custom inspector.
For more detailed explanation about each gizmo type and their properties, See the Wiki section of the repo.
- Make sure the Gizmos Menu is toggled on in the top right corner.
- If this doesn't work - Expand menu, find
GizmoDrawer
in the scripts list and ensure it's enabled.
- If this doesn't work - Expand menu, find
- Check the
GizmoDrawer
properties in the inspector and ensure its origin is set to the expected value.
Contributions are welcome! If you have any problems or an idea for a new feature, feel free to submit a new issue here.
This project is licensed under the MIT License. See the LICENSE file for details.