# GizmoType

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

## Definition

* **Type:** Enum
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
[Flags]
public enum GizmoType
```

## Remarks

The types can be combined together with an OR operator.

Additional Resources: [DrawGizmo](/engine/6000.5/script-reference/unityeditor/drawgizmo.md).

## Fields

| Value                                                                                                       | Description                                                                   |
| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| [Active](/engine/6000.5/script-reference/unityeditor/gizmotype/active.md)                                   | Draw the gizmo if it is active (shown in the inspector).                      |
| [InSelectionHierarchy](/engine/6000.5/script-reference/unityeditor/gizmotype/inselectionhierarchy.md)       | Draw the gizmo if it is selected or it is a child/descendent of the selected. |
| [NonSelected](/engine/6000.5/script-reference/unityeditor/gizmotype/nonselected.md)                         | Draw the gizmo if it is not selected.                                         |
| [NotInSelectionHierarchy](/engine/6000.5/script-reference/unityeditor/gizmotype/notinselectionhierarchy.md) | Draw the gizmo if it is not selected and also no parent/ancestor is selected. |
| [Pickable](/engine/6000.5/script-reference/unityeditor/gizmotype/pickable.md)                               | The gizmo can be picked in the editor.                                        |
| [Selected](/engine/6000.5/script-reference/unityeditor/gizmotype/selected.md)                               | Draw the gizmo if it is selected.                                             |
