ドキュメント

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 分最終更新 1ヶ月前

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.