# OnDisable()

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

## Definition

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

```csharp
void OnDisable()
```
