# OnEnable()

> Called when the tool is created.

## Definition

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

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

### Remarks

Unity calls this method when the tool is created. Additional Resources: [ScriptableObject.OnEnable()](/engine/6000.6/script-reference/unityengine/scriptableobject/onenable.md).
