Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How to make UI sprite or button bounce like jelly

Discussion in '2D' started by gurman22788, Nov 24, 2023.

  1. gurman22788

    gurman22788

    Joined:
    Feb 3, 2023
    Posts:
    3
    Hello everyone, please tell me how I can implement the effect of shaking a sprite or a picture when pressing the button, the bottom line is that in the clicker game, when pressing the button, the object deformed but not much, I tried to use the skinning editor, but I didn't succeed very successfully, if you have ready-made solutions or you can advise me something, I will be very grateful.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,273
    You can hook up animations to the button directly. There's even a helper thingy that stubs them all out for you. Check out the docs on it.

    Otherwise, I guess the next easiest would be a tweening package of some kind, DOTWeen or LeanTween for instance.
     
  3. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,105
    So are you asking about UGUI? There's a UGUI forum for this feature.

    Note: Please only use tags that are appropriate to your post.