기술 자료

Unity Engine


User Manual

Script Reference

Unity Engine


treeInstances

Contains the current trees placed in the terrain.
읽는 시간 1분최근 업데이트: 23일 전

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.