TreeInstance

struct in UnityEngine

Cambiar al Manual

Descripción

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

This struct can be accessed from the TerrainData Object.

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.
rotationRead-only.Rotation of the tree on X-Z plane (in radians).
widthScaleWidth scale of this instance (compared to the prototype's size).