Batching problem - static meshes share material but no batching occurs

Hello,

I have a level that contains of a model that contains all of the buildings, roads etc. This is not one mesh ofcourse, but consists of submeshes which can be positioned and edited inside Unity.

These meshes share one material. There are no multiple copies of the material, just on instance that is shared between the meshes. Also the meshes have been marked as static. However I get a separate draw call for each submesh and batching = 0.

Does anyone have any idea why this happens?

I should mention that the level is constructed in 3d studio max and each building / sidewalk / road in there is an x-ref. The shaders ( materials ) for each x-ref are merged in the main scene. Unity has no problem with all that unless it has something to do with batching( which wouldn’t make much sense since the geometry has already been imported succesfully at runtime ).

Thanks!

OK I Just found the solution through this post ( http://forum.unity3d.com/threads/63342-How-does-Static-Batching-work-in-Unity-3-on-PC ).

I just had to toggle the Static Batching checkbox in the Player Settings… :slight_smile: