I have 12 materials in total in my game.Then I have various Gameobjects that have many materials attached to it for example Gameobject1 further have 10 Childrens each of which use 2 same Materials.Now with Gameobject1 I have 20 draw-calls I want to reduce them for which I turned on Dynamic Batching in unity3d and attached CombineChildren.js to GameObject1 but still the result is the same I have 20 drawcalls but I want to reduce it to 2 draw-calls because I am using only two materials repeatedly in Gameobject1 .Where I am going wrong?
Any help would be greatly appreciated
In my case I was able to solve this problem by combining all the meshes of the childs game objects to a single mesh with a CombineMeshUtility.js that comes with unity3D. So the parent game object(Empty Gameobject) now has 1 game object that is the mesh of all the childs and then it has other child game objects without any renderer or material. I hope this is clear