TerrainEditResult
What TerrainEditUtility.SculptHeights or TerrainEditUtility.PaintLayers changed.
Read time 1 minuteLast updated 22 days ago
Definition
- Type: Struct
- Namespace: UnityEditor.TerrainTools
- Assembly: UnityEditor
public readonly struct TerrainEditResult
Properties
Property | Description |
|---|---|
| applied | True when the edit was written. False when it changed nothing, in which case nothing was written and nothing was recorded for undo. |
| changedCount | The number of samples whose stored height changed, or of texels where a layer weight changed by at least half of the alphamap's 8-bit storage step. |
| rect | The rectangle that the edit can change: heightmap samples for TerrainEditUtility.SculptHeights, alphamap texels for TerrainEditUtility.PaintLayers. It covers the region, widened to the cells it crosses, and the blend band. Nothing outside it changes. |