Author Topic: Particle Depth Issue  (Read 6076 times)

marcusjung

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Particle Depth Issue
« on: November 09, 2012, 10:40:09 PM »
I'm trying to use shriken particle with NGUI.
But Particle is always behind sprites of NGUI.
I searched and finded similar issue like this
http://www.tasharen.com/forum/index.php?topic=1859.0

But I can't understand that answer.
It means that just change shader of paritcle?
But changing shader means loosing transparency.

I'm looking foword to position particle above the sprite of NGUI. with transparency.
Is it possible?


« Last Edit: November 09, 2012, 10:42:42 PM by marcusjung »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Particle Depth Issue
« Reply #1 on: November 10, 2012, 11:38:44 AM »
Yes, grab the Unity shaders (available freely from their website), and modify the shuriken particle shader's Queue. NGUI uses:
  1. "Queue" = "Transparent"
I'm not sure what shuriken particles use, but making it be something like
  1. "Queue" = "Transparent+1"
...would solve the issue.

marcusjung

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: Particle Depth Issue
« Reply #2 on: November 11, 2012, 11:39:58 PM »
Thanks for the your response.
I will do that solution.