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作为原始密度,较低的数将导致更少的细节物体被渲染。

参见:detailObjectDistance.

using UnityEngine;

using System.Collections;



public class example : MonoBehaviour {

	void Start() {

		Terrain.activeTerrain.detailObjectDensity = 0.5F;

	}

}
function Start () {

	Terrain.activeTerrain.detailObjectDensity = 0.5;

}
Page last updated: 2011-4-1