UMG Sound off/on in blueprints?

I am having an issues, I have a particular sound effect that plays once a person accesses the title screen and main menu, however when the player goes into a different menu I would like for that effect to turn off and then a new track plays in the new screen. In my case, the password screen. I can’t seem to figure out this behavior in the blueprint editor to get the title screen/main menu to turn off when a player goes into a different screen and then resume once the player goes back into the title/main menu screens.


a4d6e3aef9026efff3033f1b91f52ea91d6968b3.jpeg

Yeah thanks Diat it’s for UMG not the level, but I am going to try it and let you know.

I think the best way is to create a cue then add your sound in a specific Sound Class, then set volume to 0 of that sound class .
UMG Sound Class, In Game Background Sound Class, and what else do you want .
6f7c818396.png
6f7c7be531.png

And If you want a slider :

Drag a slider :
6fc454aacf.png
At Value add a function :
72105805e8.png
Then in Function :
721051bcce.png
Then : in Event Graph of you Widget :

I know this is an old post but this is the way i did it.

Right click, Create Sound 2D (Select the sound you want) then Promote it to a variable, I named mine BGM, then drag from the Return Value of your BGM and type Play.

Then Get the BGM reference that you have, drag from the Return Value and type Stop.