Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: laurentl on May 08, 2013, 02:54:56 AM

Title: Sprites moving behind other objects in z (nested panels)
Post by: laurentl on May 08, 2013, 02:54:56 AM
I want to order textures. I use panels for that.

It works well except that panels order get mixed up when one panel rotates behind another.

https://www.youtube.com/watch?v=L0Q4mKoGnbg
Title: Re: Sprites moving behind other objects in z (nested panels)
Post by: ArenMook on May 08, 2013, 06:23:28 PM
That's how Unity works. It sorts objects based on distance from the camera to the center of the drawn object. Instead of rotating, consider scaling instead (shrinking X).