Search Unity

Possible bug: Animator: Animation state speed 0 effects all states

Discussion in 'Animation' started by Artifactx, Oct 11, 2014.

  1. Artifactx

    Artifactx

    Joined:
    Jul 20, 2012
    Posts:
    14
    Unity Version:
    I'm using Unity Version 4.6.0b20.

    The Issue
    I'm playing around with 2D animation, and I need an animation state with a set speed of 0 because I want to create an idle animation.

    The thing that puzzles me is that whenever I transition from a state with a speed of 0, the state that I transition to also freezes up like it has 0 speed, this happens even though the speed of the new state is 1. This inheritance of speed from states through transitions only happens when the speed value is 0, e.g. the value 0.1 gives no issues at all.

    Here are some illustrations of the issue:
    speedimg.jpg

    Here is a GIF that demonstrates the freezing: As you can see the animations works fine as long as the transition comes form a state that has more than 0 speed.
    freezegif.gif

    I know I can work my way around this issue by using two identical sprites with a normal speed of 1 which will give me the result I'm looking for. But I would like to know if this is a bug or if it's working as intended.