GizmoType Manual     Reference     Scripting  
Scripting > Editor Enumerations > GizmoType
GizmoType Enumeration

Determines how a gizmo is drawn or picked in the Unity editor.

Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.

The types can be combined together with an OR operator. See Also: DrawGizmo.


Draw the gizmo if it is active (shown in the inspector).


Draw the gizmo if it is selected or a child of the selection.


Draw the gizmo if it is not selected at all.


Draw the gizmo if it is selected.


The gizmo can be picked in the editor.