Author Topic: Particle System Sandwiched Between Sprites  (Read 3220 times)

NaxIonz

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 70
    • View Profile
Particle System Sandwiched Between Sprites
« on: October 11, 2013, 10:38:14 AM »
I can't seem to get my particle systems to be in front of the right sprites.

Previously, I would open the shader and mess with the queue +/- a number till it worked.

Now, no matter what I enter for the queue, it never works. What's more bizarre is that in the editor's inspector, the queue value of the shader always displays '2000' no matter what I set inside the shader. Even if I open the compiled shared, I see my random value, but Unity is convinced it's still 2000.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Particle System Sandwiched Between Sprites
« Reply #1 on: October 12, 2013, 10:00:24 AM »
NGUI's geometry is drawn on render queue 3000 and above. To figure out which render queue it's going to be, take the number of the draw call the widget is in (check its panel), and add it to 3000. It's not exactly ideal, I know -- but neither is sandwiching particle systems. :)

As to why it remains at 2000 -- that I can't answer as it's a question for Unity.

NaxIonz

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 70
    • View Profile
Re: Particle System Sandwiched Between Sprites
« Reply #2 on: October 14, 2013, 12:52:24 PM »
NGUI's geometry is drawn on render queue 3000 and above. To figure out which render queue it's going to be, take the number of the draw call the widget is in (check its panel), and add it to 3000. It's not exactly ideal, I know -- but neither is sandwiching particle systems. :)

As to why it remains at 2000 -- that I can't answer as it's a question for Unity.

Thanks.
I did figure out the "stuck at 2000" issue... I guess you can't have a space between "Transparent" and the "+1000"
Whoops...