Version: 2023.2

Terrain.detailObjectDistance

切换到手册
public float detailObjectDistance ;

描述

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

另请参阅:detailObjectDensity

using UnityEngine;

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