# how do i create a sound off button?

**URL:** <https://forums.unrealengine.com/t/how-do-i-create-a-sound-off-button/323363>\
**Category:** Audio\
**Tags:** onclick, unreal-engine, options, Blueprint, question\
**Created:** [June 28, 2015, 9:30pm UTC](https://forums.unrealengine.com/t/how-do-i-create-a-sound-off-button/323363 "2015-06-28T21:30:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_2d042a15](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2d042a15](https://forums.unrealengine.com/u/anonymous_user_2d042a15)\
**Post date:** [June 28, 2015, 9:30pm UTC](https://forums.unrealengine.com/t/how-do-i-create-a-sound-off-button/323363/1 "2015-06-28T21:30:43Z")

</div>

so i have created a button in my options menu that will turn on the sounds in my game and i just need an onclick event to make all my sounds stop again when i press the button to do so in the options menu, but i don’t know where to start. i’ve tried searching for this info for a long time and have been unsuccessful. any efforts to help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Devero](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Devero](https://forums.unrealengine.com/u/Devero)\
**Post date:** [June 28, 2015, 10:02pm UTC](https://forums.unrealengine.com/t/how-do-i-create-a-sound-off-button/323363/2 "2015-06-28T22:02:57Z")

</div>

Hi Saphia,

You can use an Audio Component to manage the sounds on and off.

Here is a good post on it.

[Audio Component, Sound On/Off](https://forums.unrealengine.com/showthread.php?2478-Play-a-sound-when-key-is-pressed-stop-when-no-longer-pressing)

Good luck!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2d042a15](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2d042a15](https://forums.unrealengine.com/u/anonymous_user_2d042a15)\
**Post date:** [June 29, 2015, 11:04am UTC](https://forums.unrealengine.com/t/how-do-i-create-a-sound-off-button/323363/3 "2015-06-29T11:04:48Z")

</div>

is there anything i need to do specifically to the audio component because ive added it to the stop function on my on clicked event and its not working.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6199feb8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6199feb8](https://forums.unrealengine.com/u/anonymous_user_6199feb8)\
**Post date:** [June 29, 2015, 12:37pm UTC](https://forums.unrealengine.com/t/how-do-i-create-a-sound-off-button/323363/4 "2015-06-29T12:37:36Z")

</div>

1. Create a new SoundClass
2. Open every Audio Content that should be affected

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/0/3c073b82dd54481d555dc455f2e089d6fab8ba63.jpeg)  
3. Set the SoundClass of all your selected Content to the Class we created

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/6/aa60417776f9d66a23d8df8a141728da6cd991d0.png)  
4. Create two new SoundMix Assets

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/f/fbf2a4cc178a8fca12304b084ea23584366d21dc.jpeg)  
5. Open both SoundMix Assets  
6. Add an element to SoundClassEffects, set SoundClass to the Class we created and set the VolumeAdjusters to 0 and 1

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/d/d7d1c03c3a476265226cbc67295c189bfc7f343b.png)  
7. Use the SetBaseSoundMix-Node (set to our new SoundMix-Assets) to modify our SoundClass

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/d/8/fd8450b2352bdf551ac83aa0164249e1544302f1.png)  
I hope this might help 🙂

For more informations check this: [Unreal Engine 4 Documentationt: Audio & Sound][6]

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2d042a15](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2d042a15](https://forums.unrealengine.com/u/anonymous_user_2d042a15)\
**Post date:** [June 29, 2015, 1:37pm UTC](https://forums.unrealengine.com/t/how-do-i-create-a-sound-off-button/323363/5 "2015-06-29T13:37:31Z")

</div>

Should this not work. i tried what you did but it made no difference.

 ![48351-sound.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/5/5/b55133c95cd73bb487755de0c6e68c9cc71ea685.jpeg)

---

<div class="post-metadata">

**Author:** ![atanknomore](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@atanknomore](https://forums.unrealengine.com/u/atanknomore)\
**Post date:** [October 20, 2016, 8:42pm UTC](https://forums.unrealengine.com/t/how-do-i-create-a-sound-off-button/323363/6 "2016-10-20T20:42:10Z")

</div>

Did you ever solved this?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2d042a15](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2d042a15](https://forums.unrealengine.com/u/anonymous_user_2d042a15)\
**Post date:** [October 21, 2016, 4:42pm UTC](https://forums.unrealengine.com/t/how-do-i-create-a-sound-off-button/323363/7 "2016-10-21T16:42:18Z")

</div>

i dont think i ever did sorry if i do i dont have the files anymore and i work with a different engine now so i dont remeber much
