# How do i remove a widget from the viewport

**URL:** <https://forums.unrealengine.com/t/how-do-i-remove-a-widget-from-the-viewport/321637>\
**Category:** Blueprint\
**Tags:** remove-from-parent, unreal-engine, UE4, question\
**Created:** [June 13, 2015, 4:24am UTC](https://forums.unrealengine.com/t/how-do-i-remove-a-widget-from-the-viewport/321637 "2015-06-13T04:24:47Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![TechDIN0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TechDIN0](https://forums.unrealengine.com/u/TechDIN0)\
**Post date:** [June 13, 2015, 4:24am UTC](https://forums.unrealengine.com/t/how-do-i-remove-a-widget-from-the-viewport/321637/1 "2015-06-13T04:24:47Z")

</div>

When i try and use the remove from parent like some other answers on some other questions said it didn’t work for me…

> **[Gyazo](https://gyazo.com/8867c1ae8b4de215aede23ded68e8efe)**
>
> Easily capture screenshots, GIFs, and replays that are ready to share. Download the free app for windows and mac.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ebba4a66](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ebba4a66](https://forums.unrealengine.com/u/anonymous_user_ebba4a66)\
**Post date:** [July 5, 2015, 6:47pm UTC](https://forums.unrealengine.com/t/how-do-i-remove-a-widget-from-the-viewport/321637/2 "2015-07-05T18:47:23Z")

</div>

same for me UE4.8!!! any help pls?

---

<div class="post-metadata">

**Author:** ![Alanzote](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alanzote](https://forums.unrealengine.com/u/Alanzote)\
**Post date:** [July 5, 2015, 6:53pm UTC](https://forums.unrealengine.com/t/how-do-i-remove-a-widget-from-the-viewport/321637/3 "2015-07-05T18:53:56Z")

</div>

It’s Simple!  
In any blueprint use “Remove From Parent”. If you’re using something outside the widget blueprint, you need to say wich Widget by using a var or picking up the output of the Create Widget Event.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ebba4a66](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ebba4a66](https://forums.unrealengine.com/u/anonymous_user_ebba4a66)\
**Post date:** [July 5, 2015, 8:00pm UTC](https://forums.unrealengine.com/t/how-do-i-remove-a-widget-from-the-viewport/321637/4 "2015-07-05T20:00:20Z")

</div>

## UE-4.8

I have added buttons in my _BP-MainMenu_ blueprintClass and wanna load this in the Level Blueprint _Level-00_ Event BeginPlay.  
When Play button is clicked i wanna start Level-00 and remove this widget from the viewport, but remove is not working…

Im not using something outside of the widget blueprint…

Thanks for advanced…

MainMenu

 ![49190-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/f/1/cf1a1038a4e2023aa15845762d94f1748a8244e0.png)

 ![49201-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/9/af91a6b8d84c3bc112e0a6b881df43adda50d745.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ebba4a66](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ebba4a66](https://forums.unrealengine.com/u/anonymous_user_ebba4a66)\
**Post date:** [July 5, 2015, 8:16pm UTC](https://forums.unrealengine.com/t/how-do-i-remove-a-widget-from-the-viewport/321637/5 "2015-07-05T20:16:34Z")

</div>

I think the _Event BeginPlay_ is called each time when level start and create the widget also. so when the play button clicked \> level start \> widget create again and again…  
this is an infinite loop… 😛

Finally got it… 😉

---

<div class="post-metadata">

**Author:** ![xSKiraSx\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xSKiraSx\_1](https://forums.unrealengine.com/u/xSKiraSx_1)\
**Post date:** [August 21, 2015, 6:03am UTC](https://forums.unrealengine.com/t/how-do-i-remove-a-widget-from-the-viewport/321637/6 "2015-08-21T06:03:39Z")

</div>

erm…so may i asked how you to solve the problem?I have the same problem with that…

---

<div class="post-metadata">

**Author:** ![wmbuRn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wmbuRn](https://forums.unrealengine.com/u/wmbuRn)\
**Post date:** [August 21, 2015, 6:51am UTC](https://forums.unrealengine.com/t/how-do-i-remove-a-widget-from-the-viewport/321637/7 "2015-08-21T06:51:50Z")

</div>

Use remove all widgets?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ebba4a66](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ebba4a66](https://forums.unrealengine.com/u/anonymous_user_ebba4a66)\
**Post date:** [August 21, 2015, 6:57am UTC](https://forums.unrealengine.com/t/how-do-i-remove-a-widget-from-the-viewport/321637/8 "2015-08-21T06:57:01Z")

</div>

Just use “remove from parent” in the widget blueprint event graph and target is self, thats it…

Or… you can use “remove from parent” from any blueprint, u just need to add widget blueprint reference as target.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_78a5feb8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_78a5feb8](https://forums.unrealengine.com/u/anonymous_user_78a5feb8)\
**Post date:** [September 10, 2015, 12:59am UTC](https://forums.unrealengine.com/t/how-do-i-remove-a-widget-from-the-viewport/321637/9 "2015-09-10T00:59:29Z")

</div>

That doesnt work for me…

---

<div class="post-metadata">

**Author:** ![jtsmith](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jtsmith](https://forums.unrealengine.com/u/jtsmith)\
**Post date:** [September 10, 2015, 1:17am UTC](https://forums.unrealengine.com/t/how-do-i-remove-a-widget-from-the-viewport/321637/10 "2015-09-10T01:17:13Z")

</div>

If it is infinitely stuck in adding the widget for some reason, then put a “DoOnce” node in front of the Create Widget node.

---

<div class="post-metadata">

**Author:** ![Slipoch](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slipoch](https://forums.unrealengine.com/u/Slipoch)\
**Post date:** [February 29, 2016, 12:36pm UTC](https://forums.unrealengine.com/t/how-do-i-remove-a-widget-from-the-viewport/321637/11 "2016-02-29T12:36:07Z")

</div>

Yep, does not work for me either, even when loading the play level not the menu level it overlays the menu.

4.10

---

<div class="post-metadata">

**Author:** ![Ethan248](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ethan248](https://forums.unrealengine.com/u/Ethan248)\
**Post date:** [April 24, 2016, 1:34pm UTC](https://forums.unrealengine.com/t/how-do-i-remove-a-widget-from-the-viewport/321637/12 "2016-04-24T13:34:57Z")

</div>

For me it helped to check the “Is Volatile” at the button. Nothing helped untill I checked it.

---

<div class="post-metadata">

**Author:** ![BrandyWhisky](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BrandyWhisky](https://forums.unrealengine.com/u/BrandyWhisky)\
**Post date:** [November 3, 2016, 1:52pm UTC](https://forums.unrealengine.com/t/how-do-i-remove-a-widget-from-the-viewport/321637/13 "2016-11-03T13:52:24Z")

</div>

Im using 4.13 and this problem still persist.

Is there a bug to the new “Remove From Parent”? It adds “Widget to Viewport” and works 100 percent. However “Remove From Parent” worked only on rare occasions and then it doesn’t work anymore. “Remove All Widgets” which worked 100 percent and its awesome, however more often than not, we do not want to remove all Widget.

I tried adding it in other blueprints or in the widget blueprint itself, both couldn’t remove the widget from viewport. Is there a set up that we should be notified of?

---

<div class="post-metadata">

**Author:** ![littleclaude](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/littleclaude/32/1008648_2.png) [@littleclaude](https://forums.unrealengine.com/u/littleclaude)\
**Post date:** [May 4, 2017, 12:20am UTC](https://forums.unrealengine.com/t/how-do-i-remove-a-widget-from-the-viewport/321637/14 "2017-05-04T00:20:04Z")

</div>

Got it to work 🙂 simple

 ![136724-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/5/8/85885f565e1ffba53cd2ebbfe6eb651a56170a33.jpeg)

I just skipped Open Level.

---

<div class="post-metadata">

**Author:** ![nitosouji](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nitosouji](https://forums.unrealengine.com/u/nitosouji)\
**Post date:** [June 11, 2017, 7:40am UTC](https://forums.unrealengine.com/t/how-do-i-remove-a-widget-from-the-viewport/321637/15 "2017-06-11T07:40:45Z")

</div>

I wanna share my stupid mistake.

I created the widget mistakenly within the for each loop node stream.

So even if I removed a widget, there were still 7 siblings sit on the screen comfortably watching me going nuts.

I hope this confession would help dumb cuties like me.

---

<div class="post-metadata">

**Author:** ![Benni.Lodge](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Benni.Lodge](https://forums.unrealengine.com/u/Benni.Lodge)\
**Post date:** [July 4, 2017, 6:29pm UTC](https://forums.unrealengine.com/t/how-do-i-remove-a-widget-from-the-viewport/321637/16 "2017-07-04T18:29:23Z")

</div>

Had the same issue. I’m glad it was spotted.

---

<div class="post-metadata">

**Author:** ![idontknow12332](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@idontknow12332](https://forums.unrealengine.com/u/idontknow12332)\
**Post date:** [September 26, 2017, 8:10pm UTC](https://forums.unrealengine.com/t/how-do-i-remove-a-widget-from-the-viewport/321637/17 "2017-09-26T20:10:49Z")

</div>

lol wait, so your solution is to remove open level, the whole problem is that the widget isn’t removed when you open a new level, so how the [redacted] is this even helpful?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2fdc7687](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2fdc7687](https://forums.unrealengine.com/u/anonymous_user_2fdc7687)\
**Post date:** [March 23, 2018, 8:31pm UTC](https://forums.unrealengine.com/t/how-do-i-remove-a-widget-from-the-viewport/321637/18 "2018-03-23T20:31:48Z")

</div>

I fixed this issue by changing the World Settings for each Level.  
I have on button click\>remove from parent(self)\>Open Level. Similar to Hanif shows, but without get Player controller.  
I had Main Menu Level and Battle Screen as their own Level and each had their own HUD widget.

(Anything shown as “name” is what mine is called. Yours is what you named your Levels, HUD, etc)

Open the “Main Menu Level” (or whatever your first level you want shown is called) under Maps folder  
Look under Game Mode. Make sure your game mode override is “Main Menu Level”  
Make sure your HUD class is “HUD\_Main Menu”  
Open the Second Level you want to Open. Mine was “Battle Screen”  
Check that the Game mode is “Battle Screen” and that the HUD Class is “HUD\_BattleScreen”

This will break the infinite loop when opening the new level.

---

<div class="post-metadata">

**Author:** ![aclem011](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@aclem011](https://forums.unrealengine.com/u/aclem011)\
**Post date:** [November 18, 2018, 5:06am UTC](https://forums.unrealengine.com/t/how-do-i-remove-a-widget-from-the-viewport/321637/19 "2018-11-18T05:06:02Z")

</div>

So I realize this post is super old, but I recently ran into this same issue and found a solution, so figured I’d share. I had to use “Get All Widgets Of Class” → “Remove From Parent”.

_ **PLEASE NOTE** _ : If you have more than one widget of the same class in the parent, and you don’t want to remove ALL of them, this is _ **NOT** _ the solution for you!

![259736-widgetremoval.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/0/e20e3bd5737fd0a35e1012cf33784a3f13487642.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fc179560](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fc179560](https://forums.unrealengine.com/u/anonymous_user_fc179560)\
**Post date:** [February 20, 2019, 2:49am UTC](https://forums.unrealengine.com/t/how-do-i-remove-a-widget-from-the-viewport/321637/20 "2019-02-20T02:49:23Z")

</div>

For people for which the Remove from parent didn’t help:  
DestroyComponent fixed it for me.

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/1/aa1c91b5e1987fbb1647e33f8b32ef24f80c3579.png)

[Next page](https://forums.unrealengine.com/t/how-do-i-remove-a-widget-from-the-viewport/321637.md?page=2)
