Terrain.treeMaximumFullLODCount 全部LOD树木最大数

var treeMaximumFullLODCount : int

Description描述

Maximum number of trees rendered at full LOD.

在全部LOD,树木渲染的最大数。

This is an easy setting to prevent too many trees being rendered at too high resolution in dense forests. Since there will be no fade if treeMaximumFullLODCount is exceeded you should tweak the treeBillboardDistance to not include unnecessary trees that are not being seen but, still rendered.

这是一个简单的设置来阻止太多的树木以过高的分辨率在稠密的深林中被渲染。由于将不会有淡出,如果treeMaximumFullLODCount的值是越界,应该调节treeBillboardDistance来保证不包括那些没有被看到但是仍然被渲染了的不重要的树木。

using UnityEngine;

using System.Collections;



public class example : MonoBehaviour {

	void Start() {

		Terrain.activeTerrain.treeMaximumFullLODCount = 200;

	}

}
function Start () {

	Terrain.activeTerrain.treeMaximumFullLODCount = 200;

}
Page last updated: 2011-4-1