Documentation

Unity Engine

Download Unity

Unity Engine

TerrainEditResult

What TerrainEditUtility.SculptHeights or TerrainEditUtility.PaintLayers changed.
Read time 1 minuteLast updated 22 days ago

Definition

public readonly struct TerrainEditResult

Properties

Property

Description

appliedTrue when the edit was written. False when it changed nothing, in which case nothing was written and nothing was recorded for undo.
changedCountThe 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.
rectThe 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.