文档

Unity Engine

Unity Engine

treeDistance

The maximum distance at which trees are rendered.
阅读时间1 分钟最后更新于 23 天前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TerrainModule
public float treeDistance { get; set; }

Remarks

The higher this is, the further the distance trees can be seen and the slower it will run.
Additional Resources: Terrain.treeBillboardDistance

Examples

using UnityEngine;public class Example : MonoBehaviour{ void Start() { Terrain.activeTerrain.treeDistance = 2000; }}