# How to show/hide Widget

**URL:** <https://forums.unrealengine.com/t/how-to-show-hide-widget/428911>\
**Category:** UI\
**Tags:** hide, unreal-engine, Widget, UE4, question, Blueprint\
**Created:** [July 7, 2018, 9:18pm UTC](https://forums.unrealengine.com/t/how-to-show-hide-widget/428911 "2018-07-07T21:18:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![seifmagdi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@seifmagdi](https://forums.unrealengine.com/u/seifmagdi)\
**Post date:** [July 7, 2018, 9:18pm UTC](https://forums.unrealengine.com/t/how-to-show-hide-widget/428911/1 "2018-07-07T21:18:04Z")

</div>

Hello my friends.

I’m having this problem and I don’t know exactly how to fix it. I want to script in the Level Blueprint so when I press Q I toggle to show/hide the Counter for the stuff you have collected. Also I have First Person Blueprint when I created this project.

Thanks if anyone helps.

-Seif.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6c821b89](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6c821b89](https://forums.unrealengine.com/u/anonymous_user_6c821b89)\
**Post date:** [July 7, 2018, 10:57pm UTC](https://forums.unrealengine.com/t/how-to-show-hide-widget/428911/2 "2018-07-07T22:57:35Z")

</div>

You’re going to be working with nodes like:

Add to viewport

## Set Visibility

Be sure to create the widget in a BeginPlay or somewhere that executes at the start

Hope this points in the right direction

---

<div class="post-metadata">

**Author:** ![seifmagdi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@seifmagdi](https://forums.unrealengine.com/u/seifmagdi)\
**Post date:** [July 8, 2018, 11:43am UTC](https://forums.unrealengine.com/t/how-to-show-hide-widget/428911/3 "2018-07-08T11:43:45Z")

</div>

Hey man, I noticed that my original HUD widget was broken and didn’t work. But I got my new one to work perfectly with your tutorial also. Here is a photo of it.

 ![246592-lvl1-level-blueprint-editor-7-8-2018-1-42-52-pm.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/f/0ffae66b1b1e355c383e74c2843539cd0004f6a2.png)

---

<div class="post-metadata">

**Author:** ![MizzoFrizzo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MizzoFrizzo](https://forums.unrealengine.com/u/MizzoFrizzo)\
**Post date:** [December 20, 2023, 9:12pm UTC](https://forums.unrealengine.com/t/how-to-show-hide-widget/428911/4 "2023-12-20T21:12:08Z")

</div>

Man, you don’t want to remove from parent every time. Just set visibility instead…

---

<div class="post-metadata">

**Author:** ![Cymascopic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cymascopic](https://forums.unrealengine.com/u/Cymascopic)\
**Post date:** [January 12, 2024, 12:07am UTC](https://forums.unrealengine.com/t/how-to-show-hide-widget/428911/5 "2024-01-12T00:07:06Z")

</div>

This is how to toggle visibility of a widget

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/2/5c2ba0e7dae1e400c8f2e2d57c714d7b8c7ae1bf.png)
