About occlusion

Hi all :slight_smile:

i got ones scene in wich i change the gameobjects at runtime…
something from this:

to this:

all works fine except occlusion culling that i need to keep as all this runs on smartphones.

Is there a way to change OC at runtime ? or to choose one OC.data and load it at runtime ?

Please help !

Thanks in advance :slight_smile:

Happy unitying !

Hi,
Can’t you have the destructible object set to dynamic, instead of static? Then they cannot occlude other objects, but they can still be occluded by static objects. But if you have all of your objects potentially destructible this might not help you.

See manual:

1 Like

For mobile in my opinion I think that guy needs to have the object set to static to save performance and to have lightmaps as well.

On the screenshot you can see the destroyed part is not set to static and hence, the lighting difference