Terrain
- activeTerrain
- AddTreeInstance
- basemapDistance
- castShadows
- CreateTerrainGameObject
- detailObjectDensity
- detailObjectDistance
- editorRenderFlags
- Flush
- GetPosition
- heightmapMaximumLOD
- heightmapPixelError
- lightmapIndex
- SampleHeight
- SetNeighbors
- terrainData
- treeBillboardDistance
- treeCrossFadeLength
- treeDistance
- treeMaximumFullLODCount
Terrain.detailObjectDensity 细节物体密度
var detailObjectDensity : float
Description描述
Density of detail objects.
细节物体的密度。
This number goes from 0.0 to 1.0, with 1.0 being the original density, and lower numbers resulting in less detail objects being rendered.
这个数字在0.0到1.0之间,1.0作为原始密度,较低的数将导致更少的细节物体被渲染。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Start() {
Terrain.activeTerrain.detailObjectDensity = 0.5F;
}
}
function Start () {
Terrain.activeTerrain.detailObjectDensity = 0.5;
}
最后修改:2011年4月1日 Friday 18:11