Search Unity

Can I get/set the playtime/progress of a state in the Animator Component?

Discussion in 'Animation' started by Shinugami, Nov 26, 2013.

  1. Shinugami

    Shinugami

    Joined:
    Oct 17, 2012
    Posts:
    54
    I'm using 4.3 to do 2D animation. Due to Animation's affecting the axis of the object with the Animator Component, I have had to give my character 2x Animator Controllers (one for torso and one for legs).

    It works great but due to variations in Animator State setups I have legs and a torso doing running animation but they become out of sync due to 2 Animator components.

    The frame length of the animations is identical and they match however when the torso is made to do other animations and then return to the running/walking animation, sometimes this becomes out of sync and it makes the character look strange.

    Is there a way I can set the torso's animator component's play time to equal the same play time as the leg's animator component?
     
  2. Shinugami

    Shinugami

    Joined:
    Oct 17, 2012
    Posts:
    54
    If anyone knows the answer I would appreciate it.
    In the meantime I'm using 2DTK to do this with no problems.
    Nice if I could do this with Unity's Mecanim States for 2D.