Terrain
- activeTerrain
- AddTreeInstance
- basemapDistance
- castShadows
- CreateTerrainGameObject
- detailObjectDensity
- detailObjectDistance
- editorRenderFlags
- Flush
- GetPosition
- heightmapMaximumLOD
- heightmapPixelError
- lightmapIndex
- SampleHeight
- SetNeighbors
- terrainData
- treeBillboardDistance
- treeCrossFadeLength
- treeDistance
- treeMaximumFullLODCount
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;
}
最后修改:2011年4月1日 Friday 17:17