# how to disable Pause menu inside the main menu?

**URL:** <https://forums.unrealengine.com/t/how-to-disable-pause-menu-inside-the-main-menu/413300>\
**Category:** Community & Industry Discussion\
**Tags:** main-menu, pause-game, unreal-engine, menu, pause, question\
**Created:** [December 28, 2017, 5:34pm UTC](https://forums.unrealengine.com/t/how-to-disable-pause-menu-inside-the-main-menu/413300 "2017-12-28T17:34:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![saiffa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@saiffa](https://forums.unrealengine.com/u/saiffa)\
**Post date:** [December 28, 2017, 5:34pm UTC](https://forums.unrealengine.com/t/how-to-disable-pause-menu-inside-the-main-menu/413300/1 "2017-12-28T17:34:45Z")

</div>

Hello guys! I know it very simple but I really stuck here, I have an issue in the main menu, when I click the paused key inside the main menu level the paused menu still appear, I just want that to appear inside the game level.  
Can you suggest a solution for that please :\ ??

 ![225297-26195283-10214713977103973-1280570806-o.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/e/89ea2b622bbddfda2455d7d9a8d7819bbf885280.jpeg)

---

<div class="post-metadata">

**Author:** ![saiffa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@saiffa](https://forums.unrealengine.com/u/saiffa)\
**Post date:** [December 29, 2017, 11:01am UTC](https://forums.unrealengine.com/t/how-to-disable-pause-menu-inside-the-main-menu/413300/2 "2017-12-29T11:01:34Z")

</div>

okay, guys here is my pause key blueprint, I just want the pause HUd to appear only on the game level, not main menu, so I want to disable this key (paused) on the main menu?

any brilliant guy around here can solve this issue 🙂 ??

 ![225371-01.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/5/0d5ca8011e14e45e3e8bf50d04e7ace701ab7ae3.jpeg)

---

<div class="post-metadata">

**Author:** ![saiffa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@saiffa](https://forums.unrealengine.com/u/saiffa)\
**Post date:** [December 29, 2017, 12:52pm UTC](https://forums.unrealengine.com/t/how-to-disable-pause-menu-inside-the-main-menu/413300/3 "2017-12-29T12:52:24Z")

</div>

any answer 🙂 ??

---

<div class="post-metadata">

**Author:** ![birdfreeyahoo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@birdfreeyahoo](https://forums.unrealengine.com/u/birdfreeyahoo)\
**Post date:** [December 29, 2017, 1:55pm UTC](https://forums.unrealengine.com/t/how-to-disable-pause-menu-inside-the-main-menu/413300/4 "2017-12-29T13:55:35Z")

</div>

There are two ways I would use:

1. Use a state. Declare states for main menu and in-game and then just check the state variable when pressing pause key to show or not show the menu
2. Use a different Pawn when Player is in Main Menu, so this logic does not work. You can then implement other features such as special movement inside main menu (we had moving around a planet by swiping) and switch to your HorrorCharacter when starting (e.g. by loading another map which has that HorrorCharacter set by the default gamemode)

---

<div class="post-metadata">

**Author:** ![saiffa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@saiffa](https://forums.unrealengine.com/u/saiffa)\
**Post date:** [December 29, 2017, 2:59pm UTC](https://forums.unrealengine.com/t/how-to-disable-pause-menu-inside-the-main-menu/413300/5 "2017-12-29T14:59:52Z")

</div>

thanks for the reply, how can use the state option what command should I add, please see my blueprint above

---

<div class="post-metadata">

**Author:** ![birdfreeyahoo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@birdfreeyahoo](https://forums.unrealengine.com/u/birdfreeyahoo)\
**Post date:** [December 29, 2017, 3:52pm UTC](https://forums.unrealengine.com/t/how-to-disable-pause-menu-inside-the-main-menu/413300/6 "2017-12-29T15:52:59Z")

</div>

Well first you create an [Enumeration](https://docs.unrealengine.com/latest/INT/Videos/PLZlv_N0_O1ga2b_ZaJoaR5dLHOFw4-MMl/5nLqEW6YXPY/) in the editor. The Enumeration contains all states that make sense in your game like MainMenu, InGame etc.  
Then put a variable of the type of this Enum somewhere it makes sense, I recommend the GameMode if building a Singleplayer game (keep in mind that there already exists a state with PostLogin, Playing etc., maybe you could use that).  
When you start you set that state to MainMenu, when the player starts a game you set it to InGame etc.  
Now when it is time to show the pause menu you simply check for the current state and show the Pause Menu depending on that.

---

<div class="post-metadata">

**Author:** ![saiffa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@saiffa](https://forums.unrealengine.com/u/saiffa)\
**Post date:** [December 29, 2017, 4:33pm UTC](https://forums.unrealengine.com/t/how-to-disable-pause-menu-inside-the-main-menu/413300/7 "2017-12-29T16:33:41Z")

</div>

thanks alot birdfree 🙂 I will try to create this Enumeration tonight

---

<div class="post-metadata">

**Author:** ![saiffa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@saiffa](https://forums.unrealengine.com/u/saiffa)\
**Post date:** [December 30, 2017, 8:41pm UTC](https://forums.unrealengine.com/t/how-to-disable-pause-menu-inside-the-main-menu/413300/8 "2017-12-30T20:41:03Z")

</div>

sound very complicated ☹ any new suggestions??

---

<div class="post-metadata">

**Author:** ![martoof](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/martoof/32/465230_2.png) [@martoof](https://forums.unrealengine.com/u/martoof)\
**Post date:** [December 31, 2017, 2:44am UTC](https://forums.unrealengine.com/t/how-to-disable-pause-menu-inside-the-main-menu/413300/9 "2017-12-31T02:44:23Z")

</div>

Just create a boolean variable to check if you can use pause menu at this moment : “bPauseAvailable?” default True.  
Add branch node to your PauseMenu event and check this variable. (true → create widget / false → nothing)  
Set your boolean variable to False in your MainMenu event.  
Set your boolean variable to True when you remove your MainMenu.

---

<div class="post-metadata">

**Author:** ![saiffa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@saiffa](https://forums.unrealengine.com/u/saiffa)\
**Post date:** [December 31, 2017, 10:30am UTC](https://forums.unrealengine.com/t/how-to-disable-pause-menu-inside-the-main-menu/413300/10 "2017-12-31T10:30:05Z")

</div>

I created the first part, but how can I do this:  
Set your boolean variable to False in your MainMenu event. Set your boolean variable to True when you remove your MainMenu.

---

<div class="post-metadata">

**Author:** ![saiffa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@saiffa](https://forums.unrealengine.com/u/saiffa)\
**Post date:** [December 31, 2017, 11:12am UTC](https://forums.unrealengine.com/t/how-to-disable-pause-menu-inside-the-main-menu/413300/11 "2017-12-31T11:12:55Z")

</div>

could you show me how 😃 ?

---

<div class="post-metadata">

**Author:** ![martoof](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/martoof/32/465230_2.png) [@martoof](https://forums.unrealengine.com/u/martoof)\
**Post date:** [December 31, 2017, 2:57pm UTC](https://forums.unrealengine.com/t/how-to-disable-pause-menu-inside-the-main-menu/413300/12 "2017-12-31T14:57:30Z")

</div>

Like I previously said :

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/d/8/7d8bf6457b3c7c1841178231af1fe809ce225eb8.jpeg) ](https://dl.dropboxusercontent.com/s/t04kp0vbv7ulz33/PauseMenu.jpg?dl=1)

You can also make the bool value directly inside your widget, like you want 😉

---

<div class="post-metadata">

**Author:** ![saiffa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@saiffa](https://forums.unrealengine.com/u/saiffa)\
**Post date:** [December 31, 2017, 3:33pm UTC](https://forums.unrealengine.com/t/how-to-disable-pause-menu-inside-the-main-menu/413300/13 "2017-12-31T15:33:16Z")

</div>

I appreciate your suggestion :), but the thing is my main menu events on another level not inside player BP :\   
see attached image

 ![225554-011.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/0/b/80b35e0324f1b67e529294b8b2e53b827518d96e.jpeg)

---

<div class="post-metadata">

**Author:** ![martoof](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/martoof/32/465230_2.png) [@martoof](https://forums.unrealengine.com/u/martoof)\
**Post date:** [December 31, 2017, 3:36pm UTC](https://forums.unrealengine.com/t/how-to-disable-pause-menu-inside-the-main-menu/413300/14 "2017-12-31T15:36:46Z")

</div>

That is not a problem, it’s the same logic, just cast your bool variable between your two BP.  
Look and learn how to communicate between blueprints.

> **[Actor Communication](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/ActorCommunication/)**
>
> Overview of the different methods of Actor Communication.

---

<div class="post-metadata">

**Author:** ![saiffa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@saiffa](https://forums.unrealengine.com/u/saiffa)\
**Post date:** [December 31, 2017, 4:28pm UTC](https://forums.unrealengine.com/t/how-to-disable-pause-menu-inside-the-main-menu/413300/15 "2017-12-31T16:28:35Z")

</div>

I tried to cast it but the hud disappeared, leed me please I think I’m up to something XD

 ![225558-02.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/4/844497219c38dcfed5341f33b451d1ec6cd858c6.jpeg)

---

<div class="post-metadata">

**Author:** ![saiffa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@saiffa](https://forums.unrealengine.com/u/saiffa)\
**Post date:** [December 31, 2017, 5:35pm UTC](https://forums.unrealengine.com/t/how-to-disable-pause-menu-inside-the-main-menu/413300/16 "2017-12-31T17:35:27Z")

</div>

![225559-033.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/6/2/362e444d3edd1ebf2bd74c3d38672d39e53e4150.jpeg)

Im stuck here :\

---

<div class="post-metadata">

**Author:** ![martoof](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/martoof/32/465230_2.png) [@martoof](https://forums.unrealengine.com/u/martoof)\
**Post date:** [December 31, 2017, 6:02pm UTC](https://forums.unrealengine.com/t/how-to-disable-pause-menu-inside-the-main-menu/413300/17 "2017-12-31T18:02:45Z")

</div>

Your cast failed because you tried to cast a controller to a character.  
Use a get player character instead 😉 and it seems to be good !

---

<div class="post-metadata">

**Author:** ![saiffa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@saiffa](https://forums.unrealengine.com/u/saiffa)\
**Post date:** [December 31, 2017, 6:22pm UTC](https://forums.unrealengine.com/t/how-to-disable-pause-menu-inside-the-main-menu/413300/18 "2017-12-31T18:22:07Z")

</div>

It works! 😃 I appreciate it Martoof!  
Cheers,

---

<div class="post-metadata">

**Author:** ![martoof](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/martoof/32/465230_2.png) [@martoof](https://forums.unrealengine.com/u/martoof)\
**Post date:** [December 31, 2017, 7:52pm UTC](https://forums.unrealengine.com/t/how-to-disable-pause-menu-inside-the-main-menu/413300/19 "2017-12-31T19:52:00Z")

</div>

You are welcome, don’t hesitate to train with BP communication !!

---

<div class="post-metadata">

**Author:** ![RaunGameDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RaunGameDev](https://forums.unrealengine.com/u/RaunGameDev)\
**Post date:** [April 13, 2025, 5:42am UTC](https://forums.unrealengine.com/t/how-to-disable-pause-menu-inside-the-main-menu/413300/20 "2025-04-13T05:42:37Z")

</div>

I did the same thing you did and my main menu keep coming up on the pause menu. @martoof
