ドキュメント

Unity Engine

Unity Engine

enableHeightmapLODFrustumCulling

Controls frustum culling for the terrain heightmap LOD system.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TerrainModule
public bool enableHeightmapLODFrustumCulling { get; set; }

Remarks

When enabled (the default), terrain patches outside the camera frustum are simplified aggressively, which reduces heightmap tessellation cost.
When disabled, terrain is tessellated based on camera distance and pixel error only, regardless of whether it is visible.

Examples

using UnityEngine;public class Example : MonoBehaviour{ void Start() { // Note: disabling this increases heightmap tessellation cost for off-screen terrain. foreach (var terrain in Terrain.activeTerrains) terrain.enableHeightmapLODFrustumCulling = false; }}