GetTreeInstance(int)
Gets the tree instance at the specified index. It is used as a faster version of TerrainData.treeInstances [index] as this function doesn't create the entire tree instances array.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.TerrainModule
public TreeInstance GetTreeInstance(int index)
Parameters
The index of the tree instance.
Returns
Type | Description |
|---|---|
| TreeInstance |