# How not to stop the music when game is paused?

**URL:** <https://forums.unrealengine.com/t/how-not-to-stop-the-music-when-game-is-paused/461102>\
**Category:** Audio\
**Tags:** unreal-engine, pause, music, UE4, Blueprint, question\
**Created:** [January 30, 2020, 3:59pm UTC](https://forums.unrealengine.com/t/how-not-to-stop-the-music-when-game-is-paused/461102 "2020-01-30T15:59:31Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tigro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tigro](https://forums.unrealengine.com/u/Tigro)\
**Post date:** [January 30, 2020, 3:59pm UTC](https://forums.unrealengine.com/t/how-not-to-stop-the-music-when-game-is-paused/461102/1 "2020-01-30T15:59:31Z")

</div>

In my game, when the player character dies, I handle the game over screen with the Set Game Paused node so as to stop all the things from happening and show them the endgame blueprint. I now know of all the limitations this puts on me and that it wasn’t the best design idea, which I wasn’t aware of back when developing most of the game, but since all is now scripted with this behaviour in mind, I’d rather not change it anymore. So the problem is, I’d like the background music to not stop playing when game over happens - which it now does because of the pausing behaviour. I’d just like to maybe lower the volume or pitch but not abruptly cut the music altogether as if something broke.

How would I go about doing that? I don’t see any options for this. How do I not stop the music on pause, then?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 30, 2020, 7:08pm UTC](https://forums.unrealengine.com/t/how-not-to-stop-the-music-when-game-is-paused/461102/2 "2020-01-30T19:08:40Z")

</div>

I don’t know if there’s an ‘official’ way of doing this, if you started the music from a widget, it wouldn’t pause when you went to the menu.

You can just use an empty widget ( no graphical element ), to play the music…

---

<div class="post-metadata">

**Author:** ![Tigro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tigro](https://forums.unrealengine.com/u/Tigro)\
**Post date:** [January 30, 2020, 8:44pm UTC](https://forums.unrealengine.com/t/how-not-to-stop-the-music-when-game-is-paused/461102/3 "2020-01-30T20:44:42Z")

</div>

Thank you. In the end I just marked the music as UISound in its properties pane and now it keeps playing regardless of it’s paused or not.

---

<div class="post-metadata">

**Author:** ![sonictimm](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sonictimm/32/625173_2.png) [@sonictimm](https://forums.unrealengine.com/u/sonictimm)\
**Post date:** [January 31, 2020, 12:58pm UTC](https://forums.unrealengine.com/t/how-not-to-stop-the-music-when-game-is-paused/461102/4 "2020-01-31T12:58:37Z")

</div>

For a more “official” approach, you could try putting the sound on an actor that is 'bTickableWhenPaused."

I think it’s accessible in details, but if not here’s the node for it:

> **[Set Tickable when Paused](https://docs.unrealengine.com/4.27/en-US/BlueprintAPI/Utilities/SetTickablewhenPaused/)**
>
> Set Tickable when Paused

---

<div class="post-metadata">

**Author:** ![sonictimm](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sonictimm/32/625173_2.png) [@sonictimm](https://forums.unrealengine.com/u/sonictimm)\
**Post date:** [January 31, 2020, 12:59pm UTC](https://forums.unrealengine.com/t/how-not-to-stop-the-music-when-game-is-paused/461102/5 "2020-01-31T12:59:12Z")

</div>

Very clever workaround, I like it!

---

<div class="post-metadata">

**Author:** ![Epeira](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Epeira](https://forums.unrealengine.com/u/Epeira)\
**Post date:** [April 6, 2022, 3:04pm UTC](https://forums.unrealengine.com/t/how-not-to-stop-the-music-when-game-is-paused/461102/6 "2022-04-06T15:04:52Z")

</div>

Go to the audio component is playing your sound cue.

Flag _isUISound_

tested on UE5

---

<div class="post-metadata">

**Author:** ![Gazu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gazu](https://forums.unrealengine.com/u/Gazu)\
**Post date:** [September 25, 2022, 7:42am UTC](https://forums.unrealengine.com/t/how-not-to-stop-the-music-when-game-is-paused/461102/7 "2022-09-25T07:42:33Z")

</div>

I checked UI Sound.  
But now the problem is, that the Background Music is playing all the time, even when i´m working in the Unreal Editor, without actually testplaying the game.

---

<div class="post-metadata">

**Author:** ![Epeira](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Epeira](https://forums.unrealengine.com/u/Epeira)\
**Post date:** [November 11, 2022, 2:38pm UTC](https://forums.unrealengine.com/t/how-not-to-stop-the-music-when-game-is-paused/461102/8 "2022-11-11T14:38:26Z")

</div>

This is fine. You can reduce the _real time audio volume_.

 ![ue5sounds](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/3/b/f3be2c04a3f479c4f02c997f00062dbf7be4fa68.png)

---

<div class="post-metadata">

**Author:** ![TorQueMoD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/torquemod/32/710746_2.png) [@TorQueMoD](https://forums.unrealengine.com/u/TorQueMoD)\
**Post date:** [June 16, 2023, 9:29am UTC](https://forums.unrealengine.com/t/how-not-to-stop-the-music-when-game-is-paused/461102/9 "2023-06-16T09:29:54Z")

</div>

I’ve got the music playing from my game mode, and setting the game mode to tick when paused didn’t make a difference. Same with the level blueprint for the menu map. I don’t want to set my music to UI either. Any other ideas?

---

<div class="post-metadata">

**Author:** ![TorQueMoD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/torquemod/32/710746_2.png) [@TorQueMoD](https://forums.unrealengine.com/u/TorQueMoD)\
**Post date:** [June 16, 2023, 9:38am UTC](https://forums.unrealengine.com/t/how-not-to-stop-the-music-when-game-is-paused/461102/10 "2023-06-16T09:38:32Z")

</div>

Oh, actualy, in my case my music is an audio component inside my game mode, and my main menu uses a child bp of the game mode. From there I can get the music component and set its UI Sound to true and this works. Now it’s specific to my menu music only.

 ![AudioComponentSetUI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/1/ab1d08dbe741b8f88925a384ebbfa2d8f28519ae.jpeg)

I thought this would affect the volume control of my audio cue as I want it to be set to music so I can adjust the music volume in my settings. I am pleased to say that setting the audio component to UI Sound does not affect the SoundClass, so it still responds to my music volume setting.
