Author Topic: Before and after the NGUI display problems  (Read 2985 times)

hsl9999

  • Guest
Before and after the NGUI display problems
« 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.

Grhyll

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 32
    • View Profile
Re: Before and after the NGUI display problems
« Reply #1 on: May 06, 2013, 07:48:46 AM »
I bet you use Google Translate... I couldn't understand a single sentence.

MrTact

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 32
    • View Profile
Re: Before and after the NGUI display problems
« Reply #2 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).