Author Topic: 3.0.6 f7 Default layer labels drawing in front of 3D objects  (Read 2002 times)

iclaus55

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
3.0.6 f7 Default layer labels drawing in front of 3D objects
« on: December 04, 2013, 12:14:23 AM »
It seems that after updating my current project with the new version of NGUI any labels that i had on the default layer are now rendering on top of any 3D objects I had. The pre upgrade of my project looks fine. Any Ideas?

Ferazel

  • Full Member
  • ***
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 150
    • View Profile
Re: 3.0.6 f7 Default layer labels drawing in front of 3D objects
« Reply #1 on: December 04, 2013, 11:48:41 AM »
If you're referring to pre 3.0 then yes, the panels are now z-space ignorant. And as such, they will always be rendered after all other objects in the scene. You might be able to hack it so that it uses the default 3000 render queue for these objects by making a shader as such.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 3.0.6 f7 Default layer labels drawing in front of 3D objects
« Reply #2 on: December 04, 2013, 05:03:10 PM »
Next version lets you explicitly set render queues on each panel, if you wish.

iclaus55

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: 3.0.6 f7 Default layer labels drawing in front of 3D objects
« Reply #3 on: December 04, 2013, 07:14:10 PM »
That works for me, Thanks for the quick replies and constant support!

P.S, I have tried changing the shader render queue keywords to "Background" and still cant seem to get them to display right. anyway thanks again!