# OnEnable()

> This is called when the Lighting Explorer OnEnable is called, or when you switch to another extension.

## Definition

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

```csharp
void OnEnable()
```
