Search Unity

Question How to stop animation from Resetting transform after animation Complete

Discussion in 'Animation' started by Only4gamers, Dec 8, 2020.

  1. Only4gamers

    Only4gamers

    Joined:
    Nov 8, 2019
    Posts:
    327
    Hello everyone,
    I downloaded few animations from Mixamo. In case of few animations(With "In place" option not available), animation resetting transform after animation complete. I already searched everywhere but didn't find any solution. Apply Root Motion is already checked and animation loop is already disabled. I am using Animation Type as Generic and not Humanoid.
     
  2. Only4gamers

    Only4gamers

    Joined:
    Nov 8, 2019
    Posts:
    327
    Hello, anyone?
     
  3. HeyBishop

    HeyBishop

    Joined:
    Jun 22, 2017
    Posts:
    238
    Only4gamers likes this.
  4. Only4gamers

    Only4gamers

    Joined:
    Nov 8, 2019
    Posts:
    327
    As I am using Generic Animation type, there is no option of Bake Into Pose. Even with Bake into pose while using Humanoid, it won't solve this problem. Actually what happening is Main parent Gameobject transform is not changing in Mixamo animation. So when animation start, child objects change transform but main parent gameobject stay in same place. After animation complete child gameobject going back to main parent object position. and that's creating this problem. But I succeed to solve this problem somehow, but not sure if this is the best way.
     
  5. HeyBishop

    HeyBishop

    Joined:
    Jun 22, 2017
    Posts:
    238
    Only4gamers likes this.