Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Need Help With Animation Curves!

Discussion in 'Animation' started by Kububbis, Jul 24, 2022.

  1. Kububbis

    Kububbis

    Joined:
    Nov 27, 2018
    Posts:
    1
    So I'm working on a clicker game where you click a frog. One of the features in the game is that you can unlock new hats for your frog. The animation that plays when you click the frog is a simple six frame animation, three for going down, and the same three reversed for coming back up. I am trying to animate a hat game object on top of the animation so that it looks like the hat stays on the frogs head when he gets clicked. Because the animation is only three unique frames, it looks weird if the hat animation is smooth, so I tried to use animation curves to get the hat to only clamp to the transform at each individual keyframe. It works perfectly in the editor, but for some reason when I enter game view it still shows the smooth animation. I've provided a video. Thanks in advance everyone :)