TerrainPaintUtilityEditor
Terrain paint utility editor helper functions.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Class
- Namespace: UnityEditor.TerrainTools
- Assembly: UnityEditor
public static class TerrainPaintUtilityEditor
Static Methods
Method | Description |
|---|---|
| DrawBrushPreview | Draws a Terrain brush preview mesh from a heightmap PaintContext using the provided procedural material. |
| GetDefaultBrushPreviewMaterial | Returns the default brush preview material. This material supports procedural mesh generation for use with TerrainPaintUtilityEditor.DrawBrushPreview. |
| ShowDefaultPreviewBrush | Helper function to display a default preview brush with no rotation or custom materials. |
| UpdateTerrainDataUndo | Updates the undo stack with a terrain operation. |