Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Question How to make slide-in animation for an object

Discussion in '2D' started by SCRACX, Feb 4, 2021.

  1. SCRACX

    SCRACX

    Joined:
    Jan 28, 2021
    Posts:
    3
    Hi! As the title says, I would like to make a slide-in animation for an object.

    I want it for a quit menu:
    upload_2021-2-4_18-18-9.png
    for when you click a quit button: upload_2021-2-4_18-18-48.png .

    Before clicking anything, the game looks like this:
    upload_2021-2-4_18-19-43.png
    And after it looks like this:
    upload_2021-2-4_18-20-21.png .

    I want that window to slide from the bottom to the center of the screen, but I don't know how to do it. Can someone help me, please? And it is even possible?

    Thank you in advance!
     
  2. Cornysam

    Cornysam

    Joined:
    Feb 8, 2018
    Posts:
    1,345
    Check out something like this:



    There are plenty online if you dont like that one, just give it an ol' Goog
     
  3. SCRACX

    SCRACX

    Joined:
    Jan 28, 2021
    Posts:
    3
    I like it! Thanks a lot! I tried searching the web but i found only things about sprite animation (with sprite sheets).