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.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.TerrainModule
public TreeInstance GetTreeInstance(int index)
Parameters
The index of the tree instance.
Returns
Type | Description |
|---|---|
| TreeInstance |