How can I play an animation on a button press in a widget?

At the most basic level, it could look like this:

Image from Gyazo

Trying to get an actor to go from standing to sitting on a button press within the UI widget.

It’s fine I managed to resolve it myself. Thanks anyway Everynone.

Sorry, how did you achieve this?