Terrain.treeDistance 树木距离

var treeDistance : float

Description描述

The maximum distance at which trees are rendered

被渲染的树的最大距离。

The higher this is, the further the distance trees can be seen and the slower it will run.

这个值越高,更远距离的树木将会被看到并且运行的将更慢。

参见:Terrain.treeBillboardDistance

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void Start() {
		Terrain.activeTerrain.treeDistance = 2000;
	}
}
function Start () {
	Terrain.activeTerrain.treeDistance = 2000;
}
Page last updated: 2011-4-1