Missing objects with static batching after building.

My game works fine in the editor and when I hit ‘run’ in the editor, but when I build it, objects seem to be missing.

This is related to Static Batching, as it works fine if I’m not doing that. The objects that are missing are random per build (but the same if I re-run the same build) but are all of a specific object type (e.g. I’ll have the same object I duplicate with Ctrl+D. Different ones of those will be missing each build). Finally, for some objects I’m able to actually see them if I look from a very specific angle .

In older versions of unity I read that there are issues with nodraw faces and static batching, which I think I may have in these objects.

What can I do to fix this? Static batching makes a noticable difference in my game when running it in the editor.

It seems that the problem is related to drawing quads. I moved these quads off of the static batching and all the other objects that were being affected seem to have been fixed. This way I can get the performance (there are not many of these quads).

Still, why is this happening?