# IOnSceneGUI

> Interface that provides parameters and utility functions for the OnSceneGUI event of the terrain paint tools.

## Definition

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

```csharp
public interface IOnSceneGUI
```

## Remarks

Additional Resources: [TerrainPaintTool\<T>.OnSceneGUI](/engine/6000.5/script-reference/unityeditor/terraintools/terrainpainttool1/onscenegui.md).

## Properties

| Property                                                                                                   | Description                                                                                                |
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| [brushSize](/engine/6000.5/script-reference/unityeditor/terraintools/ionscenegui/brushsize.md)             | Read only. Current brush size in terrain units (equivalent size to world units).                           |
| [brushStrength](/engine/6000.5/script-reference/unityeditor/terraintools/ionscenegui/brushstrength.md)     | Read only. Current brush strength.                                                                         |
| [brushTexture](/engine/6000.5/script-reference/unityeditor/terraintools/ionscenegui/brushtexture.md)       | Read only. Current selected brush texture.                                                                 |
| [controlId](/engine/6000.5/script-reference/unityeditor/terraintools/ionscenegui/controlid.md)             | The control ID for the current Terrain Inspector. (Read Only)                                              |
| [hitValidTerrain](/engine/6000.5/script-reference/unityeditor/terraintools/ionscenegui/hitvalidterrain.md) | Read only. True if the mouse is over a valid Terrain object; otherwise false.                              |
| [raycastHit](/engine/6000.5/script-reference/unityeditor/terraintools/ionscenegui/raycasthit.md)           | Read only. The raycast result for the current mouse position.  This is valid when hitValidTerrain is true. |
| [sceneView](/engine/6000.5/script-reference/unityeditor/terraintools/ionscenegui/sceneview.md)             | Read only. SceneView object.                                                                               |

## Methods

| Method                                                                                     | Description                                                           |
| ------------------------------------------------------------------------------------------ | --------------------------------------------------------------------- |
| [Repaint](/engine/6000.5/script-reference/unityeditor/terraintools/ionscenegui/repaint.md) | Instructs the Editor to repaint the tool UI, the Scene view, or both. |
