Search Unity

Reverse Animation On Button Click and switch to next scene

Discussion in 'Scripting' started by KnightProductions, Oct 31, 2021.

  1. KnightProductions

    KnightProductions

    Joined:
    Sep 8, 2021
    Posts:
    3
    Hi, I'm trying to make simple animations for my main menu screen for the credits scene and the and controls menu scene but I want the animations to play in reverse and switch back to the main menu scene once the main menu button is clicked but I don't know how to go at this in the script. Any help would be appreciated!
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,751
    You probably can wrangle it into reversing a single animation, but our company always just makes an "ease out" animation to undo the "ease in" animation. This is by far the easiest approach.
     
  3. KnightProductions

    KnightProductions

    Joined:
    Sep 8, 2021
    Posts:
    3
    Could you further elaborate? What do you mean by an ease-out animation?

    And How do I have the animation play this ease-out animation with a button click
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,751
    No. Go look up and do a half dozen or so animation tutorials.