Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Using subimages of a sprite-sheet for particles?

Discussion in 'General Graphics' started by BlaXun, Jan 9, 2015.

  1. BlaXun

    BlaXun

    Joined:
    Jan 8, 2015
    Posts:
    52
    Hello everybody,

    I just started using unity a few days ago and really enjoy it so far.

    Anyway, I am currently messing with particles and I wondered if I could use subimages from a imported spritesheet as particles. I know I can use a single graphic if I import it and set it on a material...but I'd like to have a spritesheet with 5 subimages and then let the particle system choose one of the 5 subimages randomly for each single particle it will generate.

    Is something like this possible with unity?

    Thanks in advance and please enjoy your weekend :)
     
  2. nindim

    nindim

    Joined:
    Jan 22, 2013
    Posts:
    130
    You can do this by using the texture animation module. Use the per row animation with a single sprite per row. One of the rows will be picked at random allowing you to have different particles in a single particle system.
     
    BlaXun likes this.