Documentation

Unity Engine


User Manual

Script Reference

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.
Read time 1 minuteLast updated 4 days ago

Definition

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

Parameters

density

The detail density value. See _detailObjectDensity.

Returns

Type

Description

Vector2Int[]

Remarks

This function is only available in the Editor.