SetTreeInstances(TreeInstance[], bool)
Sets the Tree Instance array, and optionally snaps Trees onto the surface of the Terrain heightmap.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.TerrainModule
public void SetTreeInstances(TreeInstance[] instances, bool snapToHeightmap)
Parameters
Remarks
Additional Resources: TerrainData.treeInstances.