# How do you stop a 2D sound?

**URL:** <https://forums.unrealengine.com/t/how-do-you-stop-a-2d-sound/379534>\
**Category:** Audio\
**Tags:** unreal-engine, stop, Blueprint, question\
**Created:** [December 17, 2016, 3:21am UTC](https://forums.unrealengine.com/t/how-do-you-stop-a-2d-sound/379534 "2016-12-17T03:21:13Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_1786a85d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1786a85d](https://forums.unrealengine.com/u/anonymous_user_1786a85d)\
**Post date:** [December 17, 2016, 3:21am UTC](https://forums.unrealengine.com/t/how-do-you-stop-a-2d-sound/379534/1 "2016-12-17T03:21:13Z")

</div>

Hello,  
I have a widget that plays a sound 2D in its blueprint. How do I stop this sound? Another method that would suit my needs is stopping every sound.

Thank you for reading.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_beeaf1ad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_beeaf1ad](https://forums.unrealengine.com/u/anonymous_user_beeaf1ad)\
**Post date:** [December 17, 2016, 9:24am UTC](https://forums.unrealengine.com/t/how-do-you-stop-a-2d-sound/379534/2 "2016-12-17T09:24:06Z")

</div>

You first need to keep a reference to the sound that is playing. In other words don’t call “Play 2D Sound” because that doesn’t return a reference. Instead, call Spawn Sound 2D which does return a sound reference.

When you have a sound reference you have two options to turn it off/on.

By call SetActive and passing in a true/false as the “New Active” parameter or by calling ToggleActive which will activate the sound if it’s already activated or deactivate it if it’s not.

 ![119060-screenshot_121716_012150_am.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/c/fec760d39707c3d247540778a9734a97ceff919f.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_beeaf1ad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_beeaf1ad](https://forums.unrealengine.com/u/anonymous_user_beeaf1ad)\
**Post date:** [December 18, 2016, 1:23am UTC](https://forums.unrealengine.com/t/how-do-you-stop-a-2d-sound/379534/3 "2016-12-18T01:23:58Z")

</div>

Did this solve your issue TalkingIsGreat?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1786a85d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1786a85d](https://forums.unrealengine.com/u/anonymous_user_1786a85d)\
**Post date:** [December 18, 2016, 4:28am UTC](https://forums.unrealengine.com/t/how-do-you-stop-a-2d-sound/379534/4 "2016-12-18T04:28:53Z")

</div>

I want my music to loop, and I have a button that switches the value on a Boolean variable. How do I make it so that the music stops but still loops when I turn it back on again?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_beeaf1ad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_beeaf1ad](https://forums.unrealengine.com/u/anonymous_user_beeaf1ad)\
**Post date:** [December 18, 2016, 5:35am UTC](https://forums.unrealengine.com/t/how-do-you-stop-a-2d-sound/379534/5 "2016-12-18T05:35:04Z")

</div>

What you can do is create a new Sound Cue. In the Content Browser, right click and go to Sounds \> Sound Cue.

Give the Sound Cue blueprint a name and then open it.

Right click the graph and add a new Wave Player node. Select the Wave Player node and in the details panel select your Wave sound file to play and check the “Looping” checkbox.

 ![119157-screenshot_121716_093336_pm.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/3/9/7393a69c893d4fb95467e262faa6a22aa36ae886.jpeg)

Update your Spawn Sound 2D and change the source file from the audio file to your new Sound Cue class.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1786a85d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1786a85d](https://forums.unrealengine.com/u/anonymous_user_1786a85d)\
**Post date:** [December 18, 2016, 7:13pm UTC](https://forums.unrealengine.com/t/how-do-you-stop-a-2d-sound/379534/6 "2016-12-18T19:13:25Z")

</div>

Thank you.

---

<div class="post-metadata">

**Author:** ![Thunderpwn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thunderpwn](https://forums.unrealengine.com/u/Thunderpwn)\
**Post date:** [December 23, 2018, 10:42am UTC](https://forums.unrealengine.com/t/how-do-you-stop-a-2d-sound/379534/7 "2018-12-23T10:42:05Z")

</div>

thanx for the first one, it solved my landmine being stepped on, making a little fsssh sound and then stops, when you walk further then bang!  
great! thanx

---

<div class="post-metadata">

**Author:** ![Ohmless](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ohmless/32/577877_2.png) [@Ohmless](https://forums.unrealengine.com/u/Ohmless)\
**Post date:** [July 25, 2020, 5:34pm UTC](https://forums.unrealengine.com/t/how-do-you-stop-a-2d-sound/379534/8 "2020-07-25T17:34:27Z")

</div>

Not sure if this was available when the sound cue answer was written but you can now loop audio without making a sound cue. Just double-click on the sound wave asset to edit Detail properties and check Looping.

 ![308066-looping.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/c/7/ac7848eeb0fdeee3ec282a43d407043877ec69d5.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_42fa2cf21](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_42fa2cf21](https://forums.unrealengine.com/u/anonymous_user_42fa2cf21)\
**Post date:** [July 12, 2022, 3:37pm UTC](https://forums.unrealengine.com/t/how-do-you-stop-a-2d-sound/379534/9 "2022-07-12T15:37:41Z")

</div>

Thanks ❤

---

<div class="post-metadata">

**Author:** ![RIFFF](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rifff/32/700067_2.png) [@RIFFF](https://forums.unrealengine.com/u/RIFFF)\
**Post date:** [December 19, 2022, 1:31pm UTC](https://forums.unrealengine.com/t/how-do-you-stop-a-2d-sound/379534/10 "2022-12-19T13:31:59Z")

</div>

Thanks

---

<div class="post-metadata">

**Author:** ![FabioGC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fabiogc/32/976968_2.png) [@FabioGC](https://forums.unrealengine.com/u/FabioGC)\
**Post date:** [December 28, 2022, 4:23pm UTC](https://forums.unrealengine.com/t/how-do-you-stop-a-2d-sound/379534/11 "2022-12-28T16:23:03Z")

</div>

Thank you, I used this to stop a song when hitting “back” on a widget.

---

<div class="post-metadata">

**Author:** ![ivytechengineer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ivytechengineer](https://forums.unrealengine.com/u/ivytechengineer)\
**Post date:** [June 26, 2024, 3:52pm UTC](https://forums.unrealengine.com/t/how-do-you-stop-a-2d-sound/379534/12 "2024-06-26T15:52:16Z")

</div>

Hello, I tried this blueprint and didn’t get the performance I wanted. My goal is is to play the sound completely “once” on a grab. Another grab should not restart the sound until the sound has completely played. How would you do that for a 3 minute song for example?
