ドキュメント

Unity Engine

Unity Engine

treeDistance

The maximum distance at which trees are rendered.
読み終わるまでの所要時間 1 分最終更新 21日前

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