Quick tip — How to set up Occlusion Culling in Unity

Luke Duckett
2 min readJan 13, 2022

In this short article, I’ll explain how to set up occlusion culling in Unity.

Occlusion Culling is a very useful tool we have to help boost performance in our games. The process will cause specific elements of a scene to render only when necessary (for example, when a player is looking in that direction).

To mark an object as able to be occluded you need to go to the transform of that object and under the drop-down list next to the static indicator select “Occluder Static” and “Occludee Static”.

Next, go to “Window” > “Rendering” > “Occlusion Culling” and click “Bake” to set up the Occlusion data.

Now, click the visualization button to see the effects in the scene view.

Now in the game view, move your player around and watch as Unity renders objects in and out depending on where the player is looking.

That’s all for now.

--

--

Luke Duckett

🎮 First Nations Unity Dev from Wonnarua country 🏞️ | From Player to Lifelong Learner: Crafting Games, Debugging Code, and Embracing New Technology