Experimental: this API is experimental and might be changed or removed in the future.

ITerrainInfo

interface in UnityEngine.Experimental.TerrainAPI

Switch to Manual

Description

Interface that conveys information about a Terrain within the PaintContext area.

Variables

clippedPCPixelsRead only. PaintContext.pixelRect, clipped to this Terrain, in PaintContext pixel coordinates.
clippedTerrainPixelsRead only. PaintContext.pixelRect, clipped to this Terrain, in Terrain pixel coordinates.
gatherEnableControls gathering from this Terrain within the PaintContext. The default is true.
scatterEnableControls scattering to this Terrain within the PaintContext. The default is true.
terrainRead only. The Terrain represented by this context.
userDataModify this value, if required, to store and retrieve values relevant to the PaintContext operation.