Author Topic: particle problem with NGUI layer  (Read 4712 times)

hisashipong

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
particle problem with NGUI layer
« on: January 24, 2014, 01:23:28 AM »
i have some problem about the particle with NGUI.
now i have created a UI logo, the logo have particle on top of it, and with a background , background also have some particle.
But the problem come, the top of logo particle, its cant show it up, it will display behind the logo.

here is my top view setting:

---background----  <--- the lowest layer
----particle----
-----Logo-----
---particle-----  <-- the toppest layer

and i have try each layer use 1 UIPanel depth, it also not work at all.

the first photo is i disable the "background" layer, the toppest particle can show (the star particle)
and the second photo is i enable the "background" layer, the toppest particle can't show in front of the Logo Layer ( the green plane)


plz help me about this  , thx
« Last Edit: January 24, 2014, 01:32:42 AM by hisashipong »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile

hisashipong

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: particle problem with NGUI layer
« Reply #2 on: January 28, 2014, 02:40:24 AM »
Thx so much, but maybe i don't know how to use it well. I have to set it for 2 panel to make it's work.

here is what i have done

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: particle problem with NGUI layer
« Reply #3 on: January 28, 2014, 09:38:36 AM »
Render Queue must be set to "explicit", not "start at". It should also start at some valid number. 0 is not. 3000 is the transparent queue. 2000 is the solid queue. Particles, and all other transparent things are all drawn on 3000 by default. To change something to draw before something else, have it have a lower render queue number, such as 2990. To have it draw after, give it a higher render queue such as 3010.