Terrain.treeBillboardDistance 树木面向板距离

var treeBillboardDistance : float


Distance from the camera where trees will be rendered as billboards only.


Decreasing this value improves performance but makes the transition look worse because the difference between billboards and trees will be more obvious.


using UnityEngine;
using System.Collections;

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