StaticOcclusionCullingVisualization Manual     Reference     Scripting  
Scripting > Editor Classes > StaticOcclusionCullingVisualization
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.

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.

showTargetVolumes

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

showGeometryCulling

If set to true, visualization of target volumes 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

quality

Quality used for preview visualization

isPreviewOcclusionCullingCameraInPVS

previewOcclusionCamera