TreeInstance Manual     Reference     Scripting  
Scripting > Runtime Classes > TreeInstance
TreeInstance Struct

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

This struct can be accessed from the TerrainData Object.

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.