Terrain
- activeTerrain
- AddTreeInstance
- basemapDistance
- castShadows
- CreateTerrainGameObject
- detailObjectDensity
- detailObjectDistance
- editorRenderFlags
- Flush
- GetPosition
- heightmapMaximumLOD
- heightmapPixelError
- lightmapIndex
- SampleHeight
- SetNeighbors
- terrainData
- treeBillboardDistance
- treeCrossFadeLength
- treeDistance
- treeMaximumFullLODCount
Terrain.treeBillboardDistance 树木面向板距离
var treeBillboardDistance : float
Description描述
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;
}
最后修改:2011年4月1日 Friday 17:47