treeInstances
Contains the current trees placed in the terrain.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.TerrainModule
public TreeInstance[] treeInstances { get; set; }
Remarks
Note that setting the treeInstances property will not automatically snap Tree instances onto the surface of the Terrain heightmap. To do so, use TerrainData.SetTreeInstances instead.