Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: hsl9999 on May 06, 2013, 04:48:43 AM

Title: Before and after the NGUI display problems
Post by: hsl9999 on May 06, 2013, 04:48:43 AM
I have a Prefab component, there are three different texture set, use the display perspective camera on NGUI, in less than a specified Y value 0, of which two texture set to another texture set back, in the greater than the specified Y value of 0, it is normal. Normally the two texture sets in front of another texture set. This is why?Thanks.
Title: Re: Before and after the NGUI display problems
Post by: Grhyll on May 06, 2013, 07:48:46 AM
I bet you use Google Translate... I couldn't understand a single sentence.
Title: Re: Before and after the NGUI display problems
Post by: MrTact on May 06, 2013, 03:36:35 PM
If you are doing a 2d game, you want to switch your main camera to orthographic. Perspective depth sorting won't work properly because the distance from the camera to the layered objects changes as you pan around. If this is just a UI layer for a 3d game, make sure you are using a separate camera for your UI. Try running the UI Wizard and attaching your display hierarchy to what it outputs (which includes a UI root and a custom camera for the UI).