Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

TreeInstance

Description

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.
widthScaleWidth scale of this instance (compared to the prototype's size).