# Auto

> Choose the codec that supports hardware decoding on the target platform.

## Definition

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

```csharp
Auto = 0
```

### Remarks

Unity automatically selects the best available codec based on the current platform and video file format. This is the default setting. For more information about video encoding, refer to [Video encoding compatibility reference](/engine/6000.7/manual/video/sources/encoding-compatibility.md).
