# Main Menu Widget Not Closing

**URL:** <https://forums.unrealengine.com/t/main-menu-widget-not-closing/331026>\
**Category:** Blueprint\
**Tags:** main-menu, unreal-engine, Blueprint, question\
**Created:** [September 4, 2015, 11:11am UTC](https://forums.unrealengine.com/t/main-menu-widget-not-closing/331026 "2015-09-04T11:11:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![SidSharma\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SidSharma\_1](https://forums.unrealengine.com/u/SidSharma_1)\
**Post date:** [September 4, 2015, 11:11am UTC](https://forums.unrealengine.com/t/main-menu-widget-not-closing/331026/1 "2015-09-04T11:11:38Z")

</div>

Hi,  
I have created a main menu  
I have Play button which is loading a map and then i have attached " Remove from parent "  
But its not removing the widget from the viewport.

I have attached my Level Blueprint and Widget bluepring Graph Please check and help me

 ![MainMenu_BP.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/2/42a81b841bb9065b6da4da6c58b3ddd01cf3c2fd.jpeg)

---

<div class="post-metadata">

**Author:** ![Steve\_T](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Steve\_T](https://forums.unrealengine.com/u/Steve_T)\
**Post date:** [September 4, 2015, 3:29pm UTC](https://forums.unrealengine.com/t/main-menu-widget-not-closing/331026/2 "2015-09-04T15:29:17Z")

</div>

To me it looks like you have created a loop. So your level loads (Interior01) and loads the widget. You click the button which opens the level (Interior01) again and then the widget is destroyed. BUT the event begin play activates again when the level is loaded and a new widget is created. Try creating a new test level and activate it in the open level node and see if it disappears.

---

<div class="post-metadata">

**Author:** ![SidSharma\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SidSharma\_1](https://forums.unrealengine.com/u/SidSharma_1)\
**Post date:** [September 5, 2015, 4:33pm UTC](https://forums.unrealengine.com/t/main-menu-widget-not-closing/331026/3 "2015-09-05T16:33:00Z")

</div>

Thanks solved my issue Thank you steve

---

<div class="post-metadata">

**Author:** ![Steve\_T](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Steve\_T](https://forums.unrealengine.com/u/Steve_T)\
**Post date:** [September 5, 2015, 4:37pm UTC](https://forums.unrealengine.com/t/main-menu-widget-not-closing/331026/4 "2015-09-05T16:37:57Z")

</div>

No problem! Remember to mark it as answered so other people can see the fix

---

<div class="post-metadata">

**Author:** ![Nomeltian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nomeltian](https://forums.unrealengine.com/u/Nomeltian)\
**Post date:** [October 10, 2015, 1:16pm UTC](https://forums.unrealengine.com/t/main-menu-widget-not-closing/331026/5 "2015-10-10T13:16:44Z")

</div>

Sorry for my ineptitude. But how did you manage to fix it? I either seem to be stuck with the menu not closing or having no menu at all. I’m new to all this. alt text

 ![62126-screen+shot+001.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/8/5485c0de2735dc8aa87e2c0221d9f95a74c5666f.png)

 ![62125-screen+shot.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/d/c/bdcf028d8d93f7d4e8cc2d619a4fb287b9c3bf2a.png)

---

<div class="post-metadata">

**Author:** ![Steve\_T](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Steve\_T](https://forums.unrealengine.com/u/Steve_T)\
**Post date:** [October 11, 2015, 7:53pm UTC](https://forums.unrealengine.com/t/main-menu-widget-not-closing/331026/6 "2015-10-11T19:53:27Z")

</div>

In your Main Menu blueprint try putting the remove from parent before the open level?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_aea304e8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_aea304e8](https://forums.unrealengine.com/u/anonymous_user_aea304e8)\
**Post date:** [August 13, 2016, 3:15am UTC](https://forums.unrealengine.com/t/main-menu-widget-not-closing/331026/7 "2016-08-13T03:15:14Z")

</div>

Hey ! I am also Having the problem, while I am on a New level and such, when i Open the level from the start game button, it plays the music which i had set for the level, and also plays the game, but keeps the main menu from going away

---

<div class="post-metadata">

**Author:** ![oneroncer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@oneroncer](https://forums.unrealengine.com/u/oneroncer)\
**Post date:** [January 27, 2017, 1:43pm UTC](https://forums.unrealengine.com/t/main-menu-widget-not-closing/331026/8 "2017-01-27T13:43:43Z")

</div>

same here dude!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4232b65b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4232b65b](https://forums.unrealengine.com/u/anonymous_user_4232b65b)\
**Post date:** [July 18, 2018, 2:28am UTC](https://forums.unrealengine.com/t/main-menu-widget-not-closing/331026/9 "2018-07-18T02:28:49Z")

</div>

Thanks !!  
It have created a loop.  
Destory the loop!

---

<div class="post-metadata">

**Author:** ![ITS-MJ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ITS-MJ](https://forums.unrealengine.com/u/ITS-MJ)\
**Post date:** [July 22, 2023, 2:50pm UTC](https://forums.unrealengine.com/t/main-menu-widget-not-closing/331026/10 "2023-07-22T14:50:08Z")

</div>

Alright so I found a solution.

1. create a Dummy Level lets say “Menu\_lvl”.
2. go to project settings and search and set the Editor startup map and Game Startup map to “Menu\_lvl” map/level.
3. In the “Menu\_lvl” level’s blueprint connect the following nodes like this  
Event BeginPlay → Create Widget (for class value = MainMenu) → Add to Viewport (connect the target too).
4. then in your MainMenu widget blueprint select the correct logic of the level/map you want to open when the start button is clicked (prefer using Open Level by Object Reference as you might face some packing problems).
5. save and compile all blueprints.
6. done.

the problem mainly occurs because you set your level/map as default level to open when you play game, because of which the when you click start button it does not work as the level is already running and thus your main menu does not disappear from your screen.
