LanguageEnglish
  • C#

TerrainData.GetClampedDetailPatches

Declaration

public Vector2Int[] GetClampedDetailPatches(float density);

Parameters

density The detail density value. See Terrain.detailObjectDensity.

Description

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.

This function is only available in the Editor.


Did you find this page useful? Please give it a rating: