Author Topic: Is there a way to use 2 different atlases under the same panel ?  (Read 4764 times)

Sahkan

  • Jr. Member
  • **
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 74
    • View Profile
Is there a way to use 2 different atlases under the same panel ?

I'm happened to make too many panels and it messes up the depth hierarchy, I'm using more then one sprite and i'v been told that they will overlap each others, is that true ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Is there a way to use 2 different atlases under the same panel ?
« Reply #1 on: July 25, 2014, 01:22:59 AM »
Yes, you can use different atlases under the same panel, but doing so will cause draw calls when you interrupt a batch of widgets using one atlas with another. It's a good idea to keep this separation to a minimum. For example, Atlas A sprites always on the bottom, Atlas B sprites always on top.

All sprites create their own set of draw calls and those draw calls don't mix.

Sahkan

  • Jr. Member
  • **
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 74
    • View Profile
Re: Is there a way to use 2 different atlases under the same panel ?
« Reply #2 on: July 25, 2014, 07:15:05 PM »
I see, thanks for the information it helps me a lot  :)