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. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Animation Not working

Discussion in 'Animation' started by Kman4615, Oct 2, 2022.

  1. Kman4615

    Kman4615

    Joined:
    Oct 2, 2022
    Posts:
    1
    Basically, I'm trying to make a simple animated button for my game. And i've never used unity 2021 before so i'm not sure if I simply did something wrong.

    Basically, the animation that i'm doing is 4 buttons that is getting pushed down. (Here is an image of the 4 button animations)
    upload_2022-10-2_18-39-45.png
    But when I do things that I normally would do with animations. It doesn't work. All of my code shows that it should work, and that it actually is working. But the animation itself doesn't show up.

    It's almost as if it won't detect that I made the animation so it won't show it. is it because I made took them and dragged them onto a button to turn them into a animation? I really need help.

    upload_2022-10-2_18-32-25.png

    upload_2022-10-2_18-32-46.png

    My Code
    upload_2022-10-2_18-35-48.png