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

Texture sheet Animation not picking a random frame

Discussion in 'General Graphics' started by robotjam, Jun 25, 2018.

  1. robotjam

    robotjam

    Joined:
    Jan 7, 2015
    Posts:
    16


    Im setting up a texture sheet for some toon fire, and Ive got 8 random frames I want to just choose a single frame.

    Its set up 8 in 1 column 64x512. Unity just doesnt want to pick a random row, it always picks row 1. It used to work as I had done this in unity 5 but now in 2017 I cant just get a particle system with a number of non animating random particles.
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,329
    Seems like a bug. I would report it with an example project.

    Until it's fixed you can replicate the original behavior by changing the animation back to Whole Sheet, and changing the Start Frame to be a random between 0 and 7.9999
     
    richardkettlewell likes this.
  3. robotjam

    robotjam

    Joined:
    Jan 7, 2015
    Posts:
    16
    Ive tried that and that doesn't work either, there doesnt seem to be any way of stopping it animate.



    Ive tried Frame over time 0 and a curver with a constant and it still animates them.
     
  4. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,329
    What version of Unity are you using? I use both of these features pretty regularly and have never seen it be broken (using either method).
     
  5. robotjam

    robotjam

    Joined:
    Jan 7, 2015
    Posts:
    16
  6. Emak-Bakia

    Emak-Bakia

    Joined:
    Oct 20, 2013
    Posts:
    4