Top

#UnityTips – Preview Frustum Culling

[UPDATE: Handles multiple scene views better and doesn’t spam errors when there’s no scene view] [UPDATE: Fixed editor text field inputs not working when preview was enabled]

Thought I’d share this script, Unity does frustum culling based on each renderers bounds and the cameras field of view, near and far clipping planes. This little script, attached to a camera, let’s you preview that camera’s culling in the Scene View, useful for optimizing and debugging your levels.

previewculling

Leave a comment

Your email address will not be published.

//