Author Topic: Particles always render behind NGUI stuff in 3.0.8 f2  (Read 5065 times)

MooseMouse

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Particles always render behind NGUI stuff in 3.0.8 f2
« on: December 30, 2013, 08:30:32 AM »
I have some particle fireworks that appear around some of the text in my GUI. They are rendered using the same camera as the NGUI stuff. Prior to 3.0.8 I was able to place them closer to the camera than the NGUI stuff and they would render in front of it. Now, in 3.0.8 f2, they always render behind the NGUI stuff no matter where I have them in z-space. Is there a way to get the particles in front of the NGUI stuff, or do I need to render particles with another camera?

pahe

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 1
  • Posts: 37
    • View Profile
Re: Particles always render behind NGUI stuff in 3.0.8 f2
« Reply #1 on: December 30, 2013, 09:43:16 AM »
You have to write a custom shader which sets the depth to above 4000. There is already a thread about this problem, just use the search in the forum.

MooseMouse

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: Particles always render behind NGUI stuff in 3.0.8 f2
« Reply #2 on: December 30, 2013, 09:53:56 AM »
Oops, I apologize.. I should have searched. I thought it was related to a 3.0.8 depth sorting issue I posted about yesterday. I will search before posting from now on  :-[

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Particles always render behind NGUI stuff in 3.0.8 f2
« Reply #3 on: December 30, 2013, 12:57:19 PM »
Check the useful stuff sticky post. Last reply there contains a helper script for this.