Version: 2021.3

ITerrainInfo

interface in UnityEngine.TerrainTools

切换到手册

描述

传达有关 PaintContext 区域中地形的信息的接口。

变量

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)
gatherEnable在 PaintContext 中从地形进行收集的控件。默认值为 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)
scatterEnable在 PaintContext 中散射到此地形的控件。默认值为 true。
terrainThe Terrain represented by this context. (Read Only)
userData如果需要,修改此值,以便存储和获取与 PaintContext 操作相关的值。