Search Unity

Batching sprites and particles?

Discussion in 'General Graphics' started by YKpro, Aug 25, 2017.

  1. YKpro

    YKpro

    Joined:
    May 14, 2013
    Posts:
    12


    I got this character with 2 ball of fires in both hands.
    the fire was made with particle system with one blue fire texture.
    the rest of the character was made in 1 texture.
    this total character cost 6 drawcalls.
    this is just too expensive for one character purely because it can't be batched into 1 drawcall.
    I can make the 2 textures into 1 texture and use the same material. but the particle system just won't get along with sprites.
    is there some way that i can use the particle system to shoot sprites exactly like the character sprites with
    a sprite component?
    so they can be batched into one drawcall?
    if can be done, it will be great help!!
     

    Attached Files:

  2. ifurkend

    ifurkend

    Joined:
    Sep 4, 2012
    Posts:
    350
    First how much drawcalls when you hide the character sprite?
    If some particles are getting behind the character, it will be treated as a separate drawcall from the particles before the character.
     
  3. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
    Indeed different types of object cannot be batched together. But I would expect you could get this down to 2 draw calls.