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.

compressedSize

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

decompressedSize

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

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