# OnEnable()

> Unity calls this method automatically when the detail mesh wizard is enabled.

## Definition

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

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