Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Sahkan on July 24, 2014, 08:15:30 AM

Title: Is there a way to use 2 different atlases under the same panel ?
Post by: Sahkan on July 24, 2014, 08:15:30 AM
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 ?
Title: Re: Is there a way to use 2 different atlases under the same panel ?
Post by: ArenMook 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.
Title: Re: Is there a way to use 2 different atlases under the same panel ?
Post by: Sahkan on July 25, 2014, 07:15:05 PM
I see, thanks for the information it helps me a lot  :)