Author Topic: How to draw a shuriken particle between 2 ngui sprite  (Read 3254 times)

invincible0918

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
How to draw a shuriken particle between 2 ngui sprite
« on: November 17, 2014, 06:13:52 AM »
Due to my horrible ui design,I need to draw a particle between 2 sprite,how to draw it correctly? thx!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to draw a shuriken particle between 2 ngui sprite
« Reply #1 on: November 17, 2014, 09:23:57 AM »
You need to use explicit render queues on panels. Some panels need to be set to draw before the particle system, others -- after.

invincible0918

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: How to draw a shuriken particle between 2 ngui sprite
« Reply #2 on: November 17, 2014, 08:58:11 PM »
i tried but still not work, how to set the particle render queue?

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: How to draw a shuriken particle between 2 ngui sprite
« Reply #3 on: November 18, 2014, 03:25:00 AM »
The particle system defaults to 3000, since that's the number for transparent content, afaik. So you should be able to sandwich it by putting stuff down below 3000 and other stuff above 3000.

ArenMook

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

invincible0918

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: How to draw a shuriken particle between 2 ngui sprite
« Reply #5 on: November 18, 2014, 09:28:47 PM »
thx for reply,i tried the post's script,it worked. :D