Hello Guest

Author Topic: ParticleSystem textures into a Sprite Collection  (Read 4142 times)

griden

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 15
    • View Profile
ParticleSystem textures into a Sprite Collection
« on: March 24, 2014, 12:32:50 pm »
Hello,

I'm looking for a way to reduce the "explosion" of extra draw calls whenever a particle system is played. So I've figured if I could pack all particle textures into a sprite collection, that could help. But unfortunately I don't see a way to set the particle system to get its texture from the sprite collection. Is it possible to use 2D Toolkit's powers to my advantage in this case?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: ParticleSystem textures into a Sprite Collection
« Reply #1 on: March 24, 2014, 12:36:40 pm »
No it isn't a way to share atlases with particle systems, Unity doesn't expose the necessary bits. You want to make sure your particle system is drawing in front of all sprites as to avoid Unity trying to sort them together.

griden

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: ParticleSystem textures into a Sprite Collection
« Reply #2 on: March 24, 2014, 12:49:36 pm »
Thanks!
I've separated the particles into their own sorting layer and they are in front of everything so no problems on that front.