- Home /
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 ;)
This is the error:
Dynamic batching: index buffer source is NULL (first IB byte 0 count 0 first vertex 0 offset 0)
Answer by Venryx · Oct 25, 2016 at 10:10 AM
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.
Answer by Jessespike · Aug 21, 2016 at 11:40 AM
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.
Thanks, i was aware of that however i would rather keep it on incase i want it for other object in my scene. I ended up disabling batching in the shader tags ( "DisableBatching" = "True" ) that has returned my FPS to a playable level however i would still like to know what caused these errors, probably my newbie coding skills and the fact that decent tutorials on submesh's are hard to find.
Answer by josh_s_dev · Sep 16, 2016 at 11:13 AM
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.
Answer by routitsm · Jun 12, 2017 at 08:45 AM
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.