Version: 2022.1

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 操作相关的值。
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961