# Switching between levels bugs HUD

**URL:** <https://forums.unrealengine.com/t/switching-between-levels-bugs-hud/300808>\
**Category:** UI\
**Tags:** unreal-engine, level, bug-report, Widget, question, Blueprint\
**Created:** [December 6, 2014, 9:01pm UTC](https://forums.unrealengine.com/t/switching-between-levels-bugs-hud/300808 "2014-12-06T21:01:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![giangole](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@giangole](https://forums.unrealengine.com/u/giangole)\
**Post date:** [December 6, 2014, 9:01pm UTC](https://forums.unrealengine.com/t/switching-between-levels-bugs-hud/300808/1 "2014-12-06T21:01:40Z")

</div>

Hello My game has 2 Levels: Menu and Game, there are different widgets (menu, game, pause) everything is managed by the GAMEHUD which thanks to an ENUM switches between the different widgets, however is bugged.  
-If i start from the game and i press the PAUSE button everything is fine, GAMEUI disappears and the PAUSEUI comes in.

- If i start from the menu and then press PLAY, the GAMEUI is fine but if I press the PAUSE button, the PAUSEUI shows up but behind it there is still the GAMEUI…  
This was happening to me even in 4.5.1 but I could fix this by using the command “REMOVE ALL WIDGET OF SELECTED CLASS” (or something similar), this command is no more in the ENGINE…  
any Ideas? might be a bug

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [December 7, 2014, 8:44am UTC](https://forums.unrealengine.com/t/switching-between-levels-bugs-hud/300808/2 "2014-12-07T08:44:43Z")

</div>

Did you remove the GAMEUI Widget from the Viewport when starting the Game through the menu or do you just change the level?

---

<div class="post-metadata">

**Author:** ![giangole](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@giangole](https://forums.unrealengine.com/u/giangole)\
**Post date:** [December 7, 2014, 12:39pm UTC](https://forums.unrealengine.com/t/switching-between-levels-bugs-hud/300808/3 "2014-12-07T12:39:54Z")

</div>

here’s the blueprints

 ![23195-gamehud.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/6/dd67811741c2eb85f1793a00149a8de8c0ea80e0.png)

the game hud mamages what to show

 ![23195-gamehud.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/6/dd67811741c2eb85f1793a00149a8de8c0ea80e0.png)

and than on WIDGETS there are buttons which change the value of the enum

---

<div class="post-metadata">

**Author:** ![giangole](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@giangole](https://forums.unrealengine.com/u/giangole)\
**Post date:** [December 7, 2014, 12:41pm UTC](https://forums.unrealengine.com/t/switching-between-levels-bugs-hud/300808/4 "2014-12-07T12:41:33Z")

</div>

![23197-button.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/c/afcfb8d8adf685d799fa105b576e03265cb4e63d.png)

sry this is a button example

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [December 7, 2014, 12:47pm UTC](https://forums.unrealengine.com/t/switching-between-levels-bugs-hud/300808/5 "2014-12-07T12:47:02Z")

</div>

Ok, so pressing a button changes the ENUM to Pause and this should remove the GameUI. And you do this twice because of testing? Because the button has a “remove” for the gamehud and the Enum itself removes it.

You could try to debug it with some print strings to check if the removes are called properly.

---

<div class="post-metadata">

**Author:** ![giangole](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@giangole](https://forums.unrealengine.com/u/giangole)\
**Post date:** [December 7, 2014, 1:21pm UTC](https://forums.unrealengine.com/t/switching-between-levels-bugs-hud/300808/6 "2014-12-07T13:21:30Z")

</div>

i uploaded the same image twice by accident lol.  
If i put a “PRINT STRING” after the enum it writes theright thing…This might be a Widget BUG, since if i start from the GAME instead from the menu the UI works fine…

---

<div class="post-metadata">

**Author:** ![giangole](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@giangole](https://forums.unrealengine.com/u/giangole)\
**Post date:** [December 7, 2014, 6:20pm UTC](https://forums.unrealengine.com/t/switching-between-levels-bugs-hud/300808/7 "2014-12-07T18:20:18Z")

</div>

I Managed to fix the problems

---

<div class="post-metadata">

**Author:** ![walldiv](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@walldiv](https://forums.unrealengine.com/u/walldiv)\
**Post date:** [March 19, 2015, 12:40am UTC](https://forums.unrealengine.com/t/switching-between-levels-bugs-hud/300808/8 "2015-03-19T00:40:30Z")

</div>

its good that you managed to fix the problem, would you please indulge the rest of us experiencing the same issues and looking for an answer? \<3
