기술 자료

Unity Engine

Unity Engine

GetTreeInstance(int)

Gets the tree instance at the specified index. It is used as a faster version of TerrainData.treeInstances [index] as this function doesn't create the entire tree instances array.
읽는 시간 1분최근 업데이트: 21일 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TerrainModule
public TreeInstance GetTreeInstance(int index)

Parameters

index

The index of the tree instance.

Returns

Type

Description

TreeInstance