I have an animation on my gun that when w or s is pressed it plays a walk animation which is looped, this is all fine but when the animation has finished and starts again it stops for about half a second because the start of the animation is the the same as the end. Is there anyway within Unity that I can change this so it smoothly carries on the animation?
I’ve got my problem to work by just right clicking on the first and last keyframes and setting them to auto!
In the project pannel, click on that animated object to see the import settings. all the way down, split the animation and make it finish one frame earlier.
When you’re splitting the animations, there’s a “wrap mode” rollout. Set your run sequence’s wrap mode to loop and the end frame to the second-to-last frame of the animation. This creates a frame at the end that interpolates between the two frames and creates a smooth loop.
If that doesn’t work for you, use the separate file option.
I had the same issue, but only got it to work by adding more keyframes on top of turning them to auto (apparently the auto-keyframes don’t like it if the whole clip has only 4 keyframes, so just add more keyframes in between).