Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GizmoType

Determines how a gizmo is drawn or picked in the Unity editor.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Enum
  • Namespace: UnityEditor
  • Assembly: UnityEditor
[Flags]public enum GizmoType

Remarks

The types can be combined together with an OR operator.
Additional Resources: DrawGizmo.

Fields

Value

Description

ActiveDraw the gizmo if it is active (shown in the inspector).
InSelectionHierarchyDraw the gizmo if it is selected or it is a child/descendent of the selected.
NonSelectedDraw the gizmo if it is not selected.
NotInSelectionHierarchyDraw the gizmo if it is not selected and also no parent/ancestor is selected.
PickableThe gizmo can be picked in the editor.
SelectedDraw the gizmo if it is selected.