Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

About UGUI batch

Discussion in 'UGUI & TextMesh Pro' started by Loofah_Bu, May 20, 2016.

  1. Loofah_Bu

    Loofah_Bu

    Joined:
    Sep 5, 2014
    Posts:
    2
    hey guys,

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

    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.
     
  2. IzzySoft

    IzzySoft

    Joined:
    Feb 11, 2013
    Posts:
    376
    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. :p