Version: 2022.2

TerrainData.ComputeDetailCoverage

切换到手册
public float ComputeDetailCoverage (int detailPrototypeIndex);

描述

This function computes and returns the coverage (how many instances fit in a square unit) of a detail prototype, given its index.

Computes detail coverage. In CoverageMode, this coverage represents the number of scattered instances per unit squared, based on the detail prototype's size and density settings. Unavailable in InstanceCountMode.