# OnEnable()

> Called when the tool is created.

## Definition

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

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