文档

Unity Engine

Unity Engine

TerrainPaintUtilityEditor

Terrain paint utility editor helper functions.
阅读时间1 分钟最后更新于 1 个月前

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.