Search Unity

Particle texture sheets issue

Discussion in 'Editor & General Support' started by Cargomancer, Dec 5, 2015.

  1. Cargomancer

    Cargomancer

    Joined:
    Dec 3, 2015
    Posts:
    9
    Hey there,

    Im trying to set up a texture that selects from 2 images when spawning particles. I dont want the images to animate. I simply want to emit 2 different textures from one texture sheet on particle spawn.

    Heres the texture


    Any help would be greatly appreciated!
     
  2. MikeUpchat

    MikeUpchat

    Joined:
    Sep 24, 2010
    Posts:
    1,056
    I don't think that is possible at the moment, I wanted the same a while back and ended up duplicating the particle system and changing the material and then choosing one or other of the particle system to emit from at random.
     
  3. Cargomancer

    Cargomancer

    Joined:
    Dec 3, 2015
    Posts:
    9
    Yesh, that's pretty rough. Going to end up with a looooot of emitters.

    Cheers for the reply.
     
  4. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,352
    There's two ways to do it. One is to have the texture be tiled vertically and use "Animation" > "Single Row" instead of "Whole Sheet". The second way is to set "Frame Over Time" to a range between to constants instead of a curve. The single row feature is nice because it allows you to have a random image per particle that also animates.