Version: 2017.2

Terrain.detailObjectDistance

切换到手册
public float detailObjectDistance ;

描述

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

另请参阅:detailObjectDensity

using UnityEngine;
using System.Collections;

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