Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PaintContext.ITerrainInfo

Interface that conveys information about a Terrain within the PaintContext area.
Read time 1 minuteLast updated 12 days ago

Definition

public interface PaintContext.ITerrainInfo

Properties

Property

Description

clippedPCPixelsPaintContext.pixelRect, clipped to this Terrain, in PaintContext pixel coordinates. (Read Only)
clippedTerrainPixelsPaintContext.pixelRect, clipped to this Terrain, in Terrain pixel coordinates. (Read Only)
gatherEnableControls gathering from this Terrain within the PaintContext. The default is true.
paddedPCPixelsUse this property to fill empty regions in PaintContext. It is the same as
clippedPCPixels
with padding around unconnected Terrain edges. (Read Only)
paddedTerrainPixelsUse this property to fill empty regions in PaintContext. It is the same as
clippedTerrainPixels
with padding around unconnected Terrain edges. (Read Only)
scatterEnableControls scattering to this Terrain within the PaintContext. The default is true.
terrainThe Terrain represented by this context. (Read Only)
userDataModify this value, if required, to store and retrieve values relevant to the PaintContext operation.