Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: artician on September 21, 2012, 06:28:39 AM

Title: Odd Sorting Problem
Post by: artician on September 21, 2012, 06:28:39 AM
I have two UI's in my scene.  They're separate from one another, but I have their depths set so one should draw over the other, (acting as a popup dialog for user messages and help).  The problem is that it draws behind everything, all the time. 

It doesn't seem to matter how close I move the UI to the camera by hand, or what value I set its components depth to, the UI I want on top is *always* drawn behind the other one.  What would cause such a thing?

Here's a screenshot of the scene, but I had to crop it close because I can't show the work.  :/ 

(http://www.creathcarter.com/site_media/unity/drawing.jpg)

I hope it's enough for someone to tell me what's going on at least.
Title: Re: Odd Sorting Problem
Post by: dlewis on September 21, 2012, 06:50:35 AM
Make sure you set the depth of the UI cameras.
Title: Re: Odd Sorting Problem
Post by: artician on September 21, 2012, 08:42:53 AM
Doesn't make any difference, unfortunately!

Any other suggestions?  Thanks for the reply.
Title: Re: Odd Sorting Problem
Post by: artician on September 21, 2012, 09:12:57 AM
I figured it out.  I had all my gui cameras using the same layer.

Thanks for the help.