- Home /
Question by
Icaro-DLima · Jan 23 at 06:28 PM ·
lightmappingstatic batching
Is there any problem with deleting static GameObjects?
I have some cubes on my scene that I don't move or rotate. Think of these cubes like the soft blocks of Bomberman, they don't move, but they can be deleted.
Is there any problem with setting them as static? I am concerned about the lightmapping.
When I mark them as static, the number of draw calls drop from 30 to 16 and when I delete them it work as expected. I disabled the mixed lighting.
Thanks!
Comment
Well, you could mark them as static for batching (to reduce draw calls) and not for lightmaps (so when they are removed, there's no shadow under them). I am not entirely sure what your expectations of lightmapping are in such a dynamic environment, though.
Your answer
![](https://koobas.hobune.stream/wayback/20220613052044im_/https://answers.unity.com/themes/thub/images/avi.jpg)