About UGUI batch

hey guys,

I am recently trying to learn UGUI, here are some question about batch.

2642540--186018--1463727510047.jpg

I have six buttons in the hierarchy. They use different sprite and all packed in same atlas. I look up some doc about optimizing They always say pack all sprite in same atlas can reduce batch. but after doing this, I found that the batch count still remains 6 instead of 1.

So i think batch count depend on the button’s order. i change the button’s sources like this 1 is a source, 2 is b source, 3 is a source and so on. I think the result will be 6 but it becomes 2.

Does anybody can explain the relationship between atlas and hierarchy order and the right way to optimize UGUI ?

Thank you for any help you can provide.

i’m a novice, but i wonder…

Do you have 6 different Materials? Defeats the purpose of using a single atlas. :[
Well, even if there’s a single Material, but 6 Instances of it, it might increase the count. :stuck_out_tongue: