Search Unity

Animations not play in Animator [Unity 5]

Discussion in 'Animation' started by Trung-Hieu, Mar 19, 2015.

  1. Trung-Hieu

    Trung-Hieu

    Joined:
    Feb 18, 2013
    Posts:
    37
    I am having an annoying problem with the Animator in Unity 5, which works fine in Unity 4.6

    The problem I encounter only happens with objects (doors, TVs, lamps, etc.) , new UI button animators (When you select Transition to Animation and click generate Animator)

    Basically what I usually did is:
    1- Create an Animator Controller and attach to the object.
    2- Create a bunch of states and wires them around with conditions.
    3- For each state, make a simple Animation (usually 1 keyframe animation, not legacy animation)
    4- No other settings are modified.

    The same thing happens when I use the generated animator by the new UI button:
    1- Create an new UI button.
    2- Set transition to Animation, click generate Animator.
    3- Create simple 1 keyframe animation (scale them a bit, for example)
    4- No other settings are modified.

    What I observed in both cases are: the default state is stuck (the progress bar shown but not filled up, seems like the animation is paused). Also cannot transit out of the state, even from "Any State", although the Parameters can be seen updated.

    I tried to mess around with all the settings, but nothing works. Any idea why?
     
  2. Trung-Hieu

    Trung-Hieu

    Joined:
    Feb 18, 2013
    Posts:
    37
    Eh sorry it is my fault.. I just realize I set Time.timeScale to 0
     
    theANMATOR2b likes this.