I am trying to decrease draw calls by using unity’s default Sprite Packer.
I have followed Unity docs. And i can pack the sprites with tags,but it’s not decreasing draw calls.
Scene has 79 draw calls & 10 more draw calls from scripts after playing the game in editor.So total is 89 draw calls.
After applying sprite packer, 79 draw calls remains the same, and that 10 draw calls becomes 1. So, total becomes 80 now.
It’s not affecting the sprites those are already there in the scene view.Though its working on sprites those are created from scripts.
Are you changing the material?
Even changing the color can break the batching in Unity 2D Sprites (SpriteRenderer).
Check if any of your scripts is accessing to the “material”, if yes you can only change “sharedmaterial” to keep the batching.
I’ve converted my project to ex2D cause of that issue, but this library is a bit old.
Maybe someone got other idea to fix it.
After working for 5 days, i found a silly problem there. Unity sprite packer was working fine, but it does not work with unity default UI elements. And i have so many UI panels with default UI sprites in my scene. That’s why there are so many draw calls.
How i decreased draw calls is, i disabled the panels those are currently not in use. It reduced my draw calls upto 12.