# OnToolSettingsGUI(Terrain, IOnInspectorGUI)

> Contains the IMGUI code for custom settings beyond the common settings.

## Definition

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

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

### Parameters

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

### Remarks

If TerrainPaintToolWithOverlaysBase.HasToolSettings returns true, then there is custom code in this function. If not, then there is no custom code in this function.
