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

Animation with custom curve between key values

Discussion in 'Animation' started by Sparkline, Jul 30, 2019.

  1. Sparkline

    Sparkline

    Joined:
    Feb 8, 2013
    Posts:
    118
    I'm making a lot of animations with UI elements during menu switchings, like pop up buttons from top/bottom etc. So basicly I have simple animation keys like transform.y starts from -500 and ends in 0.
    Lets say I wish to change transform.y value according to this curve made with AnimationCurve class
    2019-07-30_101921.png

    What is the best way to approach this? This is a headache to make all animations manually. Especially if you want to change your animation easing to any other curve.