ドキュメント

Unity Engine

Unity Engine

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

The array of TreeInstance objects.

snapToHeightmap

Specifies whether to snap Trees to the Terrain heightmap.

Remarks

Additional Resources: TerrainData.treeInstances.