StaticOcclusionCullingVisualization

Used to visualize static occlusion culling at development time in scene view.

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
showOcclusionCulling

If set to true, visualization of target volumes is enabled.

occlusionCullingMode

showPreVisualization

If set to true, the visualization lines of the PVS volumes will show all cells rather than cells after culling.

showViewVolumes

If set to true, visualization of view volumes is enabled.

showPortals

If set to true, visualization of portals is enabled.

showVisibilityLines

If set to true, visualization of portals is enabled.

showGeometryCulling

If set to true, culling of geometry is enabled.

nearClipPlane

Near clip plane used for preview visualization.

farClipPlane

Far clip plane used for preview visualization.

viewCellSize

View Cell size used for preview visualization.

isPreviewOcclusionCullingCameraInPVS

previewOcclusionCamera