Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

Displays the clamped detail patches.
Read time 1 minuteLast updated 13 days ago

Definition

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

Parameters

mouseOnPatchIndex

The index of the patch that the mouse is hovering over.

clampedDetailPatchIconScreenPositions

The list of screen detail patch icons within the screen positions.

detailMinMaxHeight

The minimum and maximum height of the details within the terrain.

terrain

The target terrain.

editContext

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.