O'Reilly logo

Unity iOS Essentials by Robert Wiebe

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Culling made easy

The two most important forms of culling are distance culling and occlusion culling. There are some very simple steps that we can take to make using each of these culling methods very easy.

Distance culling

To make distance culling easy, we need to pre-plan the distances at which we want to cull the various objects in our game. We may decide to use 25, 50, and 150 meters as good distances to cull our various game objects. Once we have decided on the distances, we need to pick the game layers that we want to use for objects that will be culled based on those distances and set up the layer names in the Tag Manager. For example, we may decide to use layers 13, 14, and 15, and we may name them Cull25, Cull50, and Cull150.

The following ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required