기술 자료

Unity Engine

Unity Engine

GetClampedDetailPatches(float)

Returns an array of detail patches, which are each identified by X-Z coordinates. Detail objects in the patches are clamped to the maximum count.
읽는 시간 1분최근 업데이트: 21일 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TerrainModule
public Vector2Int[] GetClampedDetailPatches(float density)

Parameters

density

The detail density value. See Terrain.detailObjectDensity.

Returns

Type

Description

Vector2Int[]

Remarks

This function is only available in the Editor.