Animations are Jerky in game

Hi! I made an animation using bones and got it into Unity. I split the animation into an Idle, Shoot, Reload, and Switch clips (this is a FPS). When I use the animation window and look at the animations individually they look exactly how I want. But when I play the animations in game, they weapon jerks upwards at the end of reloading and then jerks down when I start to shoot. I can’t figure out why this is happening, so any help would be great! Thanks!

How are you switching between animations?

If you’re using a CrossFade or something else that will blend between animations, try switching to Play or something that won’t blend, it might narrow down where the problem is occurring.

If you can, set up the situation and pause the game, then step through it frame by frame, might make the issue more visible.

thanks for the reply! All I’m doing to play the animation is:

animation.Play ("Reload");

I will try the blending of animations though, maybe that will fix it (I know that’s the exact opposite of what you said lol)

Ok finally got this fixed. For those of you interested I fixed it adding an animation where there actually isn’t any animation (idle), then after each animation (shooting, reloading) I play the idle animation and as a result most jumpiness is gone. Then to remove the rest of the “jumpiness” I just had to fiddle around with the ending frames of each animation (specifically the reloading one).