|
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.
Active |
Draw the gizmo if it is active (shown in the inspector). |
SelectedOrChild |
Draw the gizmo if it is selected or a child of the selection. |
NotSelected |
Draw the gizmo if it is not selected at all. |
Selected |
Draw the gizmo if it is selected. |
Pickable |
The gizmo can be picked in the editor. |