Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TerrainPaintUtilityEditor

Terrain paint utility editor helper functions.
Read time 1 minuteLast updated 10 days ago

Definition

public static class TerrainPaintUtilityEditor

Static Methods

Method

Description

DrawBrushPreviewDraws a Terrain brush preview mesh from a heightmap PaintContext using the provided procedural material.
GetDefaultBrushPreviewMaterialReturns the default brush preview material. This material supports procedural mesh generation for use with TerrainPaintUtilityEditor.DrawBrushPreview.
ShowDefaultPreviewBrushHelper function to display a default preview brush with no rotation or custom materials.
UpdateTerrainDataUndoUpdates the undo stack with a terrain operation.