# UMG Sound off/on in blueprints?

**URL:** <https://forums.unrealengine.com/t/umg-sound-off-on-in-blueprints/79825>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [December 4, 2016, 8:57pm UTC](https://forums.unrealengine.com/t/umg-sound-off-on-in-blueprints/79825 "2016-12-04T20:57:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkmanx\_429](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@darkmanx\_429](https://forums.unrealengine.com/u/darkmanx_429)\
**Post date:** [December 4, 2016, 8:57pm UTC](https://forums.unrealengine.com/t/umg-sound-off-on-in-blueprints/79825/1 "2016-12-04T20:57:36Z")

</div>

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.

 ![01.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/b/1b51a8517bb3ec5dc923c642538ff0ffb60943cb.jpeg)  
 ![a4d6e3aef9026efff3033f1b91f52ea91d6968b3.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

---

<div class="post-metadata">

**Author:** ![darkmanx\_429](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@darkmanx\_429](https://forums.unrealengine.com/u/darkmanx_429)\
**Post date:** [December 9, 2016, 11:38pm UTC](https://forums.unrealengine.com/t/umg-sound-off-on-in-blueprints/79825/2 "2016-12-09T23:38:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![AnaroGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnaroGames](https://forums.unrealengine.com/u/AnaroGames)\
**Post date:** [February 17, 2017, 1:17pm UTC](https://forums.unrealengine.com/t/umg-sound-off-on-in-blueprints/79825/3 "2017-02-17T13:17:57Z")

</div>

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](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/d/9/6d9b1b8d6242ebf60e3eb84d8c0fba7c631a9eb7.png)  
 ![6f7c7be531.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/6/e/36ec631647396f30f6c3cc7e6d57b2c8128dc4e1.png)

And If you want a slider :

Drag a slider :  
 ![6fc454aacf.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/e/70ea7adf2809dba3d22a3595582521c77beaeeda.png)  
At Value add a function :  
 ![72105805e8.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/2/cb2b60af205494c37319b37682f99550a837c891.png)  
Then in Function :  
 ![721051bcce.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/7/f878d2c082858331a55cfaade63d3c9393487b38.png)  
Then : in Event Graph of you Widget :

 ![6fc45c40c1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/d/6/4d6300d4faa1cc79010c961db91e8ee57eccce48.png)

---

<div class="post-metadata">

**Author:** ![LoN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LoN](https://forums.unrealengine.com/u/LoN)\
**Post date:** [February 18, 2018, 2:27am UTC](https://forums.unrealengine.com/t/umg-sound-off-on-in-blueprints/79825/4 "2018-02-18T02:27:28Z")

</div>

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.

 ![PlayStopMusicUMG_01.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/e/cea44ee3c32de8be82cea50cdfa8aa8e6c89c786.jpeg)

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

 ![PlayStopMusicUMG_02.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/d/bdc887a8ac3e54b7eb53e8e4e355b0239d6e8516.jpeg)
