# OnRenderBrushPreview(Terrain, IOnSceneGUI)

> Use this method to implement custom tool preview and UI behavior that only renders while the mouse is within the SceneView bounds or while you're actively using this tool.

## Definition

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

```csharp
public virtual void OnRenderBrushPreview(Terrain terrain, IOnSceneGUI editContext)
```

### Parameters

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