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变量

  • position
    Position of the tree.
          树的位置。
  • widthScale
    Width scale of this instance (compared to the prototype's size).
          这个实例的宽度缩放(相对于原型的大小)。
  • heightScale
    Height scale of this instance (compared to the prototype's size).
          这个实例的高度缩放(相对于原型的大小)。
  • color
    Color of this instance.
          这个实例的颜色。
  • lightmapColor
    Lightmap color calculated for this instance.
          计算出这个实例的光照图颜色。
  • prototypeIndex
    Index of this instance in the TerrainData.treeInstances array.
          在TerrainData.treeInstances数组中的这个实例的索引。
,