# AutoSwitch

> As long as an EventSystem is active, it serves as the source of input for all UI. Otherwise, UIToolkit's built-in input handles the input.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine.UIElements](/engine/6000.3/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
[InspectorName("Auto-switch (redirect from EventSystem if present)")]
AutoSwitch = 0
```

### Remarks

This is the default option.
