# DrawClampedDetailPatchGUI(int, List<Vector4>, Vector2, Terrain, IOnSceneGUI)

> Displays the clamped detail patches.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.TerrainTools](/engine/6000.5/script-reference/unityeditor/terraintools.md)
* **Assembly:** UnityEditor

```csharp
public static void DrawClampedDetailPatchGUI(int mouseOnPatchIndex, List<Vector4> clampedDetailPatchIconScreenPositions, Vector2 detailMinMaxHeight, Terrain terrain, IOnSceneGUI editContext)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the patch that the mouse is hovering over.**** (\[List\<Vector4>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The list of screen detail patch icons within the screen positions.**** (\[Vector2]\(/engine/6000.5/script-reference/unityengine/vector2)): The minimum and maximum height of the details within the terrain.**** (\[Terrain]\(/engine/6000.5/script-reference/unityengine/terrain)): The target terrain.**** (\[IOnSceneGUI]\(/engine/6000.5/script-reference/unityeditor/terraintools/ionscenegui)): The edit context object.

### Remarks

Use this method to visualize the clamped patches when scattering details across a terrain. These clamped patches are areas where the maximum amount of detail patches are exceeded.

Additional Resources: [PaintDetailsToolUtility.ClampedDetailPatchesGUI](/engine/6000.5/script-reference/unityeditor/terraintools/paintdetailstoolutility/clampeddetailpatchesgui.md)
