Search Unity

Animation going through frame by frame and playing is different

Discussion in 'Animation' started by supermoof, Aug 11, 2021.

  1. supermoof

    supermoof

    Joined:
    Sep 24, 2015
    Posts:
    46
    Hi there, I have an animation of shooting the bow.

    However when I go frame by frame, the arrow disappears when shot which is intended animation.
    If I press play (or when played in runtime) you can see the arrow not disappearing and it looks like its shooting forward.

    Here is a video:


    Does anyone know what the problem is?
     
  2. Unrighteouss

    Unrighteouss

    Joined:
    Apr 24, 2018
    Posts:
    234
    Hey,

    So I'm pretty sure this is because each frame is being interpolated. Your animation has 60 frames per second, but it's actually running faster than that at runtime (the same speed as your FPS).

    I think you can solve this by editing the animation curves.

    You can also try upping the sample rate: 3 dots right above the vertical scrollbar -> Show Sample Rate. You'll have to re-time your animation though, and I don't recommend doing this as it's a pain.
     
unityunity