Documentation

Unity Engine

Unity Engine

StaticOcclusionCulling

StaticOcclusionCulling lets you perform static occlusion culling operations.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Class
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
Warning
Deprecated. StaticOcclusionCulling is deprecated and will be removed in a future release. Consider migrating to GPU Occlusion Culling where your target platform supports it. #from(6000.7)
public static class StaticOcclusionCulling

Static Properties

Property

Description

doesSceneHaveManualPortalsDoes the Scene contain any occlusion portals that were added manually rather than automatically?
isRunningUsed to check if asynchronous generation of static occlusion culling data is still running.
umbraDataSizeReturns the size in bytes that the PVS data is currently taking up in this Scene on disk.

Static Methods

Method

Description

CancelUsed to cancel asynchronous generation of static occlusion culling data.
ClearRemoves the baked static occlusion culling data from all loaded scenes.
ComputeBakes static occlusion culling data for the loaded scenes and waits until the bake finishes.
GenerateInBackgroundStarts baking static occlusion culling data for the loaded scenes in the background.
RemoveCacheFolderRemoves temporary folder used when baking occlusion.