# OnDisable()

> Called when the node is removed or when the graph is disabled.

## Definition

* **Type:** Method
* **Namespace:** [Unity.GraphToolkit.Editor](/engine/6000.7/script-reference/unity/graphtoolkit/editor.md)
* **Assembly:** UnityEditor

```csharp
public virtual void OnDisable()
```

### Remarks

Use this method to perform any cleanup logic.
