用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:treeinstance:treeinstance

TreeInstance 树实例

struct in UnityEngine

Description 描述

Contains information about a tree placed in the Terrain game object.

包含有关在地形对象种植树的信息。

This struct can be accessed from the TerrainData Object.

该结构可以从TerrainData对象访问。

Variables 变量

colorColor of this instance.
该实例的颜色。
heightScaleHeight scale of this instance (compared to the prototype's size).
该实例的高度缩放(相对于原型的大小)。
lightmapColorLightmap color calculated for this instance.
用于该实例的光照图颜色。
positionPosition of the tree.
树的位置。
prototypeIndexIndex of this instance in the TerrainData.treePrototypes array.
在TerrainData.treePrototypes数组中该实例的索引。
rotationRotation of the tree on X-Z plane (in radians).
在X-Z平面该树的旋转角度,单位弧度。
widthScaleWidth scale of this instance (compared to the prototype's size).
该实例的宽度缩放(相对于原形的大小)。
script/unityengine/classes/treeinstance/treeinstance.txt · 最后更改: 2016/08/02 05:31 (外部编辑)