# 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.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.TerrainModule

```csharp
public Vector2Int[] GetClampedDetailPatches(float density)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The detail density value. See [\_detailObjectDensity](/engine/6000.7/script-reference/unityengine/terrain/detailobjectdensity.md).

### Returns

| Type                                                                        | Description |
| --------------------------------------------------------------------------- | ----------- |
| [Vector2Int\[\]](/engine/6000.7/script-reference/unityengine/vector2int.md) |             |

### Remarks

This function is only available in the Editor.
