How can I get sound to Play and stop with a button in UMG?

So as you can see by the above pic I have this sorta figured out but its not quite working the way it should. when I begin play the sound is playing and if I hit the the button to pause it it does do this. But when I hit the button again to play it will not play. What am I missing here?

UE5.0.3 User widget

PS I fixed the top make button style to look as it should :slight_smile:

Hello Xoremus, thank you for posting your question.

A solution would perhaps be to check if your music reference is valid and then pausing/playing it. Flip flops can also be a bit weird. I am wondering what exec the flip flop is running when you press the mute button the second time. I would check into that.
Here is a rather rudimentary method of getting sound to play/pause if you are interested.

I hope this helps

1 Like

Ty much for your response.
My problem is I want to do this with a single button. Which is why I had the button wired the way it is.


Just did a quick redraw. This should work

1 Like

THANK YOU! This helped me to figure it out ! The only other thing I had to was feed an exec from event construct to the flipflop. And now works as intended! Thanks again.

2 Likes