Author Topic: NGUI + Particles  (Read 4584 times)

Zophiel

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 54
    • View Profile
NGUI + Particles
« on: August 04, 2012, 11:50:50 AM »
I have some particle emitters in my scene i want to get rid of to reduce the drawcalls.

If posible, how do i go about using NGUI combined with the particle systems?

For bonus points: any way to reduce the drawcalls from trail renderers?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI + Particles
« Reply #1 on: August 04, 2012, 02:00:01 PM »
Particle emitters and NGUI don't work together. NGUI creates its own geometry. So do particle systems, but particle systems do that somewhere inside unity's core. Your best bet is to create a custom widget type, basically creating your own version of a particle emitter. Same with trail renderers.

Zophiel

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 54
    • View Profile
Re: NGUI + Particles
« Reply #2 on: August 05, 2012, 04:31:50 AM »
But i have seen some posts where people use NGUI and particles and claim to still have 1 draw call. Is this because they just use the same sprite sheet?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI + Particles
« Reply #3 on: August 05, 2012, 09:08:49 AM »
You'll have to ask them what they did :)