- Home /
Materials disappear on Mobile when more then one is set to static batching.
Hey guys, I'm getting ready to release my game, and I've been trying to to some optimizing. I don't know much about how static batching works, but I've been trying to read up on it and learn as much as I can. As the title says, when I have more then one static mesh on the screen, all they all disappear. Their colliders still work, but visually the shader is gone.
http://i.imgur.com/x4qlKYG.png
Here is what is should look like with out the mesh game objects set to static:
I've tried a number of different shaders, basically all the mobile shaders, and a quite a few others, but it seems to be the same for them all.
Here I'm using a shader that is part of the Ferr Plugin for building 2d levels. But you will notice that the sky is also gone. It seems that in any scene where I have more then one static game object that is set to static, and it has a mesh setup on it, all the materials will disappear when I build it to mobile. I really would like the benefit of static batching, but I don't know how to fix this. Anyone out there have some ideas?
Are you marking any objects as static that move (at all) in your game?