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.