# TerrainPaintUtilityEditor

> Terrain paint utility editor helper functions.

## Definition

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

```csharp
public static class TerrainPaintUtilityEditor
```

## Static Methods

| Method                                                                                                                                                 | Description                                                                                                                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [DrawBrushPreview](/engine/6000.5/script-reference/unityeditor/terraintools/terrainpaintutilityeditor/drawbrushpreview.md)                             | Draws a Terrain brush preview mesh from a heightmap PaintContext using the provided procedural material.                                                                                                                                                          |
| [GetDefaultBrushPreviewMaterial](/engine/6000.5/script-reference/unityeditor/terraintools/terrainpaintutilityeditor/getdefaultbrushpreviewmaterial.md) | Returns the default brush preview material.  This material supports procedural mesh generation for use with [TerrainPaintUtilityEditor.DrawBrushPreview](/engine/6000.5/script-reference/unityeditor/terraintools/terrainpaintutilityeditor/drawbrushpreview.md). |
| [ShowDefaultPreviewBrush](/engine/6000.5/script-reference/unityeditor/terraintools/terrainpaintutilityeditor/showdefaultpreviewbrush.md)               | Helper function to display a default preview brush with no rotation or custom materials.                                                                                                                                                                          |
| [UpdateTerrainDataUndo](/engine/6000.5/script-reference/unityeditor/terraintools/terrainpaintutilityeditor/updateterraindataundo.md)                   | Updates the undo stack with a terrain operation.                                                                                                                                                                                                                  |
