# Selected

> Draw the gizmo if it is selected.

## Definition

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

```csharp
Selected = 4
```

### Remarks

It is recommended to always use [GizmoType.InSelectionHierarchy](/engine/6000.7/script-reference/unityeditor/gizmotype/inselectionhierarchy.md) instead.
