Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Shaking UI Buttons

CarlyebesCarlyebes Member
edited May 2020 in Programming

Hello guys, im creating a calculator that eventually turns into a game and all of my objects in the screen are all UI buttons. I want to shake the UI buttons or the Canvas whenever i click one of them. But i cant seem to figure it out ☹️

Comments

  • WarpWarp Administrator

    Go to Window -> Animation -> Animation

    Create a shake animation for your button and put in into an Animator.

    Create a script, and a public function that plays the animation, and put it into the "Onclick" section on the button inspector.

    Search "Animation in Unity" to learn how to use animators if you havn't already.

Sign In or Register to comment.