# OnEnable()

> When Unity enables the serialized object it upgrades old files to the new format in the editor and saves the assets. Empty during runtime.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.AdaptivePerformance](/engine/6000.3/script-reference/unityengine/adaptiveperformance.md)
* **Assembly:** UnityEngine.AdaptivePerformanceModule

```csharp
public void OnEnable()
```
