Select your preferred scripting language. All code snippets will be displayed in this language.
struct in UnityEngine
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.Close
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.Close
Contains information about a tree placed in the Terrain game object.
This struct can be accessed from the TerrainData Object.
|color||Color of this instance.|
|heightScale||Height scale of this instance (compared to the prototype's size).|
|lightmapColor||Lightmap color calculated for this instance.|
|position||Position of the tree.|
|prototypeIndex||Index of this instance in the TerrainData.treePrototypes array.|
|rotation||Read-only. Rotation of the tree on X-Z plane (in radians).|
|widthScale||Width scale of this instance (compared to the prototype's size).|