Terrain.detailObjectDistance

Switch to Manual
public float detailObjectDistance ;

Description

如果不超出该距离,则显示细节对象。

另请参阅:detailObjectDensity

using UnityEngine;

public class Example : MonoBehaviour { void Start() { Terrain.activeTerrain.detailObjectDistance = 40; } }