文档

Unity Engine

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.
阅读时间1 分钟最后更新于 14 小时前

Definition

public Vector2Int[] GetClampedDetailPatches(float density)

Parameters

density

The detail density value. See Terrain.detailObjectDensity.

Returns

Type

Description

Vector2Int[]

Remarks

This function is only available in the Editor.