기술 자료

Unity Engine

Unity Engine

treeInstances

Contains the current trees placed in the terrain.
읽는 시간 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.