TreeInstance 树实例
Struct
Contains information about a tree placed in the Terrain game object.
包含在Terrain游戏物体的树放置的信息。
This struct can be accessed from the TerrainData Object.
这个结构从TerrainData对象可以访问。
Variables变量
- positionPosition of the tree.
树的位置。 - widthScaleWidth scale of this instance (compared to the prototype's size).
这个实例的宽度缩放(相对于原型的大小)。 - heightScaleHeight scale of this instance (compared to the prototype's size).
这个实例的高度缩放(相对于原型的大小)。 - colorColor of this instance.
这个实例的颜色。 - lightmapColorLightmap color calculated for this instance.
计算出这个实例的光照图颜色。 - prototypeIndexIndex of this instance in the TerrainData.treeInstances array.
在TerrainData.treeInstances数组中的这个实例的索引。