기술 자료

Unity Engine

Unity Engine

detailObjectDensity

Density of detail objects.
읽는 시간 1분최근 업데이트: 21일 전

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TerrainModule
public float detailObjectDensity { get; set; }

Remarks

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.
Additional Resources: Terrain.detailObjectDistance

Examples

using UnityEngine;public class Example : MonoBehaviour{ void Start() { Terrain.activeTerrain.detailObjectDensity = 0.5f; }}