# OnEnable()

> Called when the node is created or when the graph is enabled.

## Definition

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

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

### Remarks

Use this method to perform initialization logic.
