# IOnPaint

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

## Definition

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

```csharp
public interface IOnPaint
```

## Remarks

Additional Resources: [TerrainPaintTool\<T>.OnPaint](/engine/6000.6/script-reference/unityeditor/terraintools/terrainpainttool1/onpaint.md).

## Properties

| Property                                                                                                | Description                                                                                                |
| ------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| [brushSize](/engine/6000.6/script-reference/unityeditor/terraintools/ionpaint/brushsize.md)             | Read only. Current brush size in Terrain units (equivalent size to world units).                           |
| [brushStrength](/engine/6000.6/script-reference/unityeditor/terraintools/ionpaint/brushstrength.md)     | Read only. Current brush strength.                                                                         |
| [brushTexture](/engine/6000.6/script-reference/unityeditor/terraintools/ionpaint/brushtexture.md)       | Read only. Current selected brush texture.                                                                 |
| [hitValidTerrain](/engine/6000.6/script-reference/unityeditor/terraintools/ionpaint/hitvalidterrain.md) | Read only. True if the mouse is over a valid Terrain object; otherwise false.                              |
| [raycastHit](/engine/6000.6/script-reference/unityeditor/terraintools/ionpaint/raycasthit.md)           | Read only. The raycast result for the current mouse position.  This is valid when hitValidTerrain is true. |
| [uv](/engine/6000.6/script-reference/unityeditor/terraintools/ionpaint/uv.md)                           | Read only. The normalized position (between 0 and 1) on the active Terrain.                                |

## Methods

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