Home > database >  GameObject doesn't reset its position after the animation is finished
GameObject doesn't reset its position after the animation is finished

Time:04-27

So i made a animation for my sword in unity, the animation is basically the sword attack, the animation itself works perfectly, BUT when the animation finishes the sword just freezes on the position of the last frame in the animation, and before you ask; yes i do have Animator component on my sword, anyways, if i check the Loop Time option the animation just loops forever, if you have any solution's about the problem be sure to comment or answer about it, anyways, THANKS!

CodePudding user response:

I would make the "loop" in the animaton window. Just copy&paste keys and make sure the first keyframe is the same as the last keyframe of your sword animation.

CodePudding user response:

copy Transform properties of first keyframe and paste to the last keyframe of your sword animation, so that after one loop sword will come to its initial position

  • Related