Version: 2023.2
LanguageEnglish
  • C#

ITerrainInfo

interface in UnityEngine.TerrainTools

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

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

Properties

clippedPCPixels PaintContext.pixelRect, clipped to this Terrain, in PaintContext pixel coordinates. (Read Only)
clippedTerrainPixels PaintContext.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.