# How do I play an animation and audio for an imported asset by pressing UI buttons?

**URL:** <https://forums.unrealengine.com/t/how-do-i-play-an-animation-and-audio-for-an-imported-asset-by-pressing-ui-buttons/486821>\
**Category:** UI\
**Tags:** button, User-Interface, unreal-engine, FeatureRequest, gui, UI, question\
**Created:** [July 30, 2021, 9:03am UTC](https://forums.unrealengine.com/t/how-do-i-play-an-animation-and-audio-for-an-imported-asset-by-pressing-ui-buttons/486821 "2021-07-30T09:03:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![v4rsh](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/v4rsh/32/88707_2.png) [@v4rsh](https://forums.unrealengine.com/u/v4rsh)\
**Post date:** [July 30, 2021, 9:03am UTC](https://forums.unrealengine.com/t/how-do-i-play-an-animation-and-audio-for-an-imported-asset-by-pressing-ui-buttons/486821/1 "2021-07-30T09:03:40Z")

</div>

![345223-ue4question.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/f/91fca7eae760870dc9aac19a91c24283f8075824.png)

Basically, I have one single animation that I wish to control using the User interface. I am new to UE4 and am confused about how to make this happen, preferably I’d like to learn how to play the same animation backwards too if possible.

I need the model to NOT play any animation on START, after which I need to use the cursor to PLAY on pressing the PLAY button, STOP (reset) the model by pressing the Stop button and PAUSE the animation by pressing the PAUSE button.

I have some idea of how blueprints are used but am unsure about using animation blueprints, model-specific blueprints or widget blueprints… I also do not know which nodes would be appropriate for the same… I have uploaded the fbx on the link below if it helps in this.

> **[merchant1.fbx](https://drive.google.com/file/d/1Hml3ItXOMP_vYbDqNjN6iHw3wsrTfU0s/view?usp=sharing)**
>
> Google Drive file.

I have a .wav file that I want to respond similarily to the same buttons as the main focus on my testing is for lip-sync

---

<div class="post-metadata">

**Author:** ![Lunder](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lunder](https://forums.unrealengine.com/u/Lunder)\
**Post date:** [July 30, 2021, 1:40pm UTC](https://forums.unrealengine.com/t/how-do-i-play-an-animation-and-audio-for-an-imported-asset-by-pressing-ui-buttons/486821/2 "2021-07-30T13:40:07Z")

</div>

there are lot thing to know about what you want to do. but for a first try :

1\> in your screen you use a 3d widget, i think a widget in the viewport is more apropriate ([Tuto][1])

2\> Link your button to your actor the simple solution is a node call “GetAllActorFromClass” to get your actor from your widget.

3\> you have to add your animation to your skeletacmesh compoent (in your actor)

![345254-answer1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/2/70299ff890b348021564cc3473cfc61d9e9ec042.png)

4\>Use this node in an event or a function to control your animation

 ![345255-answer2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/5/ae5ab7832fbb2397bd6480d121bfbfce26276222.png)

I think that can be a start for what you want to do

---

<div class="post-metadata">

**Author:** ![v4rsh](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/v4rsh/32/88707_2.png) [@v4rsh](https://forums.unrealengine.com/u/v4rsh)\
**Post date:** [August 4, 2021, 9:30am UTC](https://forums.unrealengine.com/t/how-do-i-play-an-animation-and-audio-for-an-imported-asset-by-pressing-ui-buttons/486821/3 "2021-08-04T09:30:07Z")

</div>

Thank you for this solution, I am still completely out of my depth here!

I just put an fbx into UE4 and instead of an fbx, I got a skeletal mesh, a skeleton, an anim and a physics asset file!

I don’t know how to create an actor blueprint and connect it to the widgets - I am more experienced in Unity3D UI…

I do need a world-space UI / 3D Widget but I can see there are issues with rendering it… no idea how to fix that

To express simply, I have one single animation and I need buttons to play/pause/rewind that animation, would genuinely appreciate help in a step-by-step process to get move this forward
