# OnInspectorGUI(Terrain, IOnInspectorGUI)

> Custom terrain tool OnInspectorGUI callback.

## Definition

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

```csharp
public virtual void OnInspectorGUI(Terrain terrain, IOnInspectorGUI editContext)
```

### Parameters

**** (\[Terrain]\(/engine/6000.6/script-reference/unityengine/terrain)): Active Terrain object.**** (\[IOnInspectorGUI]\(/engine/6000.6/script-reference/unityeditor/terraintools/ioninspectorgui)): Interface used to communicate between Editor and Paint tools.

### Remarks

Unity calls this method to run tool-specific inspector controls and behavior. Additional Resources: [Editor.OnInspectorGUI()](/engine/6000.6/script-reference/unityeditor/editor/oninspectorgui.md).
