StaticOcclusionCulling Manual     Reference     Scripting  
Scripting > Editor Classes > StaticOcclusionCulling
StaticOcclusionCulling

StaticOcclusionCulling lets you perform static occlusion culling operations

Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.

Class Variables
isRunning

Used to check if asynchronous generation of static occlusion culling data is still running.

doesSceneHaveManualPortals

umbraDataSize

Returns the size in bytes that the PVS data is currently taking up in this scene on disk

dynamicObjectDataSize

Returns the size in bytes that the PVS data is currently taking up in this scene on disk

staticObjectDataSize

Returns the size in bytes that the PVS data is currently taking up in this scene on disk

Class Functions
Compute

Used to generate static occlusion culling data. This function will not return until occlusion data is generated.

GenerateInBackground

Used to compute static occlusion culling data asynchronously.

Cancel

Used to cancel asynchronous generation of static occlusion culling data.

Clear

Clears the PVS of the opened scene