Version: 2021.1
LanguageEnglish
  • C#
Experimental: this API is experimental and might be changed or removed in the future.

ITerrainInfo

interface in UnityEngine.Experimental.TerrainAPI

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

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.