Terrain
- activeTerrain
- AddTreeInstance
- basemapDistance
- castShadows
- CreateTerrainGameObject
- detailObjectDensity
- detailObjectDistance
- editorRenderFlags
- Flush
- GetPosition
- heightmapMaximumLOD
- heightmapPixelError
- lightmapIndex
- SampleHeight
- SetNeighbors
- terrainData
- treeBillboardDistance
- treeCrossFadeLength
- treeDistance
- treeMaximumFullLODCount
Terrain.treeCrossFadeLength 树木淡出距离
var treeCrossFadeLength : float
Description描述
Total distance delta that trees will use to transition from billboard orientation to mesh orientation.
树木从面向板取向过渡到网格取向的总距离增量。
Decreasing this value makes the transition happen faster. Setting it to 0 will produce a visible pop when switching from mesh to billboard representation
降低这个值使过渡变化的更快。设置为0时,从网格切换面向板时将立即发生。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Start() {
Terrain.activeTerrain.treeCrossFadeLength = 20;
}
}
function Start () {
Terrain.activeTerrain.treeCrossFadeLength = 20;
}
最后修改:2011年4月1日 Friday 17:57