treeDistance
The maximum distance at which trees are rendered.
Read time 1 minuteLast updated 4 days ago
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; }}