How do i get rid of this error - Dynamic batching: index buffer source is NULL (first IB byte 0 count 0 first vertex 0 offset 0)

Title pretty much says it all i think, my project is throwing errors and i want them gone :wink:

This is the error:

Dynamic batching: index buffer source is NULL (first IB byte 0 count 0 first vertex 0 offset 0)

In sprite animation I have transparent frame. Like on picture. DELETE IT!

This is in the Unity Issue Tracker. Perhaps you’d like to go vote on getting it fixed. If you have a repro case, perhaps you could upload it and tag it.

It has to do with procedurally generated meshes, as far as we can tell. It’s a problem inside Unity, not necessarily that the meshes are incorrect.

For me the problem was that one of the models had a material in the materials list that had no faces using it. Removing the unused materials fixed the error.

I found that the problem is caused by an empty list of triangles assigned to a submesh. The problem started when I created several submeshes with empty triangle lists as placeholders with intention to populate them later on. Removing these empty lists made the problem go away.

Also as mentioned in the link provided by one of the answers this may be caused by extra unused material slots.

Edit → Project Settings → Player

Under the Other Settings tab, disable Dynamic Batching.

That might get rid of the errors, Why the errors are even happening is what I’m curious about.