# How do I remove widget from the screen?

**URL:** <https://forums.unrealengine.com/t/how-do-i-remove-widget-from-the-screen/2639677>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [August 12, 2025, 10:46pm UTC](https://forums.unrealengine.com/t/how-do-i-remove-widget-from-the-screen/2639677 "2025-08-12T22:46:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![FrastiONE](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frastione/32/1095950_2.png) [@FrastiONE](https://forums.unrealengine.com/u/FrastiONE)\
**Post date:** [August 12, 2025, 10:46pm UTC](https://forums.unrealengine.com/t/how-do-i-remove-widget-from-the-screen/2639677/1 "2025-08-12T22:46:27Z")

</div>

Hey, I’ve been working on my healing system, and the thing is I have 2 widgets that should be displayed, one for being heavily wounded and the other one for being lightly wounded, and one of these widgets should display continuously until player wound use MedKit but when I use it it does not remove the widget but health is changed. Here are the screenshots

 ![Screenshot 2025-08-11 205156](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/9/889a0982d0163fdd0b4b7c86c428a1bb9bf1dcee.png)  
 ![Screenshot 2025-08-11 205221](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/7/4/4744d25b1ddbfc4368bc133f66e77d75dac79a63.png)  
I’m a beginner in this so I hope y’all understood the problem. In advance thank you for your help!

---

<div class="post-metadata">

**Author:** ![MrButier](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mrbutier/32/982833_2.png) [@MrButier](https://forums.unrealengine.com/u/MrButier)\
**Post date:** [August 13, 2025, 2:22am UTC](https://forums.unrealengine.com/t/how-do-i-remove-widget-from-the-screen/2639677/2 "2025-08-13T02:22:32Z")

</div>

By the looks of it, your `Check Health HUD` is creating a new widget every time you call the event. Which causes you to have multiple widgets made within the viewport every time you press Q. Using the nodes “Create Widget” and “Add to Viewport” is making a brand new widget everytime, however you can use the node “Remove from Parent” to remove the widget!

I’d recommend restructuring your events like within the construction or begin play of your player character or player controller to create the two Widgets and set them to variables like you already have in the `Check Health HUD` event → then use the node from the widget references called `Set Visibility` and use the option “Collapsed” for both widgets.

Afterwards, change the “Check Health HUD” event to no longer create widgets and use the Widget variables you made to create the node `Set Visibility` on the widget. Now you would be able to show/hide widgets by either using the option “Visible” for showing or “Collapsed” for hiding.

---

<div class="post-metadata">

**Author:** ![FrastiONE](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frastione/32/1095950_2.png) [@FrastiONE](https://forums.unrealengine.com/u/FrastiONE)\
**Post date:** [August 14, 2025, 8:32pm UTC](https://forums.unrealengine.com/t/how-do-i-remove-widget-from-the-screen/2639677/3 "2025-08-14T20:32:13Z")

</div>

Hi, thank you for your response, and its kind of worked but only 1 time, and afterwards nothing happens, did I miss something? Is there should be some sort of while loop?

---

<div class="post-metadata">

**Author:** ![DonBusso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonBusso](https://forums.unrealengine.com/u/DonBusso)\
**Post date:** [August 14, 2025, 9:47pm UTC](https://forums.unrealengine.com/t/how-do-i-remove-widget-from-the-screen/2639677/6 "2025-08-14T21:47:32Z")

</div>

Hey,

I would keep everything in a single widget and adjust visuals as required. If not, you can toggle visibility of widgets, hiding first one / displaying second one (or remove parent / add to viewport again, as long as your widget reference variable is not null/empty). You would create both widgets when game starts, but adding only the main one to viewport. When you need to switch to other one you would hide the first one and show the second one.  
Maybe a widget switcher could work here too.

---

<div class="post-metadata">

**Author:** ![FrastiONE](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frastione/32/1095950_2.png) [@FrastiONE](https://forums.unrealengine.com/u/FrastiONE)\
**Post date:** [August 14, 2025, 9:53pm UTC](https://forums.unrealengine.com/t/how-do-i-remove-widget-from-the-screen/2639677/7 "2025-08-14T21:53:03Z")

</div>

I can, but it won’t look that good, because I have different images that beautifully represent the statement of the character in different ranges of HP, but thanks for suggestion 🙂

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [August 14, 2025, 10:53pm UTC](https://forums.unrealengine.com/t/how-do-i-remove-widget-from-the-screen/2639677/8 "2025-08-14T22:53:12Z")

</div>

Handle all of your UI in the controller class.  
When you add a widget create a ref variable for it.

I use events for creating, loading and unloading widgets.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/0/9b0095bcdc47189de7667ae5bb85a1217c83a6c0.jpeg)

Health should be managed in the Player State. When health is changed call a controller event to update UI.

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [August 15, 2025, 1:57am UTC](https://forums.unrealengine.com/t/how-do-i-remove-widget-from-the-screen/2639677/9 "2025-08-15T01:57:00Z")

</div>

Here’s a more robust setup.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/7/2/272f2d124e4cbfd3666fea313d4c966d759898a6.jpeg)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/9/1/991a0e62a16da8898131892a86406b44c2401877.png)
