기술 자료

Unity Engine


User Manual

Script Reference

Unity Engine


treeDistance

The maximum distance at which trees are rendered.
읽는 시간 1분최근 업데이트: 한 달 전

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; }}