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
public static class StaticOcclusionCulling
Static Properties
Property | Description |
|---|---|
| doesSceneHaveManualPortals | Does the Scene contain any occlusion portals that were added manually rather than automatically? |
| isRunning | Used to check if asynchronous generation of static occlusion culling data is still running. |
| umbraDataSize | Returns the size in bytes that the PVS data is currently taking up in this Scene on disk. |
Static Methods
Method | Description |
|---|---|
| Cancel | Used to cancel asynchronous generation of static occlusion culling data. |
| Clear | Removes the baked static occlusion culling data from all loaded scenes. |
| Compute | Bakes static occlusion culling data for the loaded scenes and waits until the bake finishes. |
| GenerateInBackground | Starts baking static occlusion culling data for the loaded scenes in the background. |
| RemoveCacheFolder | Removes temporary folder used when baking occlusion. |