# Why is this widget not hiding?

**URL:** <https://forums.unrealengine.com/t/why-is-this-widget-not-hiding/2622543>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [July 29, 2025, 2:26pm UTC](https://forums.unrealengine.com/t/why-is-this-widget-not-hiding/2622543 "2025-07-29T14:26:26Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elryk1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elryk1](https://forums.unrealengine.com/u/Elryk1)\
**Post date:** [July 29, 2025, 2:26pm UTC](https://forums.unrealengine.com/t/why-is-this-widget-not-hiding/2622543/1 "2025-07-29T14:26:27Z")

</div>

I cannot get this widget to hide at this node. When I set the widget to hidden from the details, it is hidden. If I then set this node to visible, while the widget is set to hidden from the details, it makes it show (so I know the reference is good). The next Set visibility for a different widget works as expected. The widget that is set to visible in this screen shot is set to hidden later in the flow and that works correctly.

If do a set visibility hidden in the same flow where the widget is created, it is hidden as it should be.

No matter what I do, I cannot get the widget to hide at this node, and it seem to be a problem ONLY at this spot and ONLY for hiding it (making it visible here works). I have also tried hiding specific components of the widget (which is actually what I will want to do once this works) and that did not work either.

There are no animations in this widget.

The widget is just a 2x2 image wrapped in a boarder on a canvas panel.

What is going on?

Edit: After further testing, it seems I cannot hide it with Set Visibility anywhere except immediately after it is created and added to viewport. I also cannot Set Render Opacity.

I am doing all of this in the same event graph where the widget is created and added to viewport.

 ![widgetSS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/0/d00157f11e4c8ac78988a42449d9ac2d463e787f.png)

---

<div class="post-metadata">

**Author:** ![Infant\_Zero](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/infant_zero/32/715655_2.png) [@Infant\_Zero](https://forums.unrealengine.com/u/Infant_Zero)\
**Post date:** [July 29, 2025, 3:56pm UTC](https://forums.unrealengine.com/t/why-is-this-widget-not-hiding/2622543/2 "2025-07-29T15:56:43Z")

</div>

Perhaps, try the remove from parent node instead:

 ![Screenshot 2025-07-29 105614](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/6/b/16b3559552ad43de2b8b6dfe76065d254531b9bd.png)

---

<div class="post-metadata">

**Author:** ![Elryk1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elryk1](https://forums.unrealengine.com/u/Elryk1)\
**Post date:** [July 29, 2025, 3:59pm UTC](https://forums.unrealengine.com/t/why-is-this-widget-not-hiding/2622543/3 "2025-07-29T15:59:31Z")

</div>

That doesn’t do it either. It’s still there.

---

<div class="post-metadata">

**Author:** ![Infant\_Zero](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/infant_zero/32/715655_2.png) [@Infant\_Zero](https://forums.unrealengine.com/u/Infant_Zero)\
**Post date:** [July 29, 2025, 4:01pm UTC](https://forums.unrealengine.com/t/why-is-this-widget-not-hiding/2622543/4 "2025-07-29T16:01:54Z")

</div>

Either you’re experiencing a bug, or you maybe have multiple widgets superposed and are deleting one but not all.

---

<div class="post-metadata">

**Author:** ![Elryk1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elryk1](https://forums.unrealengine.com/u/Elryk1)\
**Post date:** [July 29, 2025, 4:06pm UTC](https://forums.unrealengine.com/t/why-is-this-widget-not-hiding/2622543/5 "2025-07-29T16:06:08Z")

</div>

That’s it exactly! Multiple of the same widget! It seems to be creating a number of widgets equal to the number of players. Why is it doing that?

---

<div class="post-metadata">

**Author:** ![Infant\_Zero](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/infant_zero/32/715655_2.png) [@Infant\_Zero](https://forums.unrealengine.com/u/Infant_Zero)\
**Post date:** [July 29, 2025, 4:08pm UTC](https://forums.unrealengine.com/t/why-is-this-widget-not-hiding/2622543/6 "2025-07-29T16:08:57Z")

</div>

I’d have to look at your code to know for sure. Are you running a For Each Loop or Tick or the Triggered pin of an Input Action in association with the widget’s creation?

---

<div class="post-metadata">

**Author:** ![Elryk1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elryk1](https://forums.unrealengine.com/u/Elryk1)\
**Post date:** [July 29, 2025, 4:16pm UTC](https://forums.unrealengine.com/t/why-is-this-widget-not-hiding/2622543/7 "2025-07-29T16:16:26Z")

</div>

No loops in the creation. It happens in the BeginPlay event of the player character bp. Its the UI HUD widget. I just added the Get Player Controller to try to fix this duplication, no effect.

Now that I see this is the problem, I suspect all of these widgets have multiples.

 ![Screenshot 2025-07-29 121225](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/e/6fe7600a95ed62b210fb1a678385fbcfd2b1afc6.png)

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [July 29, 2025, 4:20pm UTC](https://forums.unrealengine.com/t/why-is-this-widget-not-hiding/2622543/8 "2025-07-29T16:20:52Z")

</div>

what are you running this logic on? BeginPlay runs on all instances (server/client etc) so it will run multiple times.

When you GetPlayerController use an IsLocallyControlled branch. or better yet move your Widget stuff to the player controller

---

<div class="post-metadata">

**Author:** ![Elryk1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elryk1](https://forums.unrealengine.com/u/Elryk1)\
**Post date:** [July 29, 2025, 4:33pm UTC](https://forums.unrealengine.com/t/why-is-this-widget-not-hiding/2622543/9 "2025-07-29T16:33:20Z")

</div>

This is being run on the player pawn blueprint. You mean move the widget creation to the player controller? What event should I use to create the widgets at spawn, does the beginplay event in player controller run on all instances as well?

Edit:  
It seems I was able to answer my own question with some testing. I moved all the creation actions to the player controller and setup a couple of casts to manipulate the visibility of the widgets instead of using the reference variables I had setup. Everything seems to be working and I verified there were no duplicates with get all widgets of class\>for each\>print index.

I would still like to know if beginplay in the player controller is the best place to create the widgets on player spawn, or if there is a better way to do it.

Thank you! It would have taken me a very long time to figure out there were duplicates on my own.

This also makes me wonder: I am setting a camera reference in the BeginPlay event in the player blueprint (where I was creating widgets before moving them). Is this going to cause a problem similar to the widget issue? I haven’t noticed anything… yet…

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [July 30, 2025, 3:42am UTC](https://forums.unrealengine.com/t/why-is-this-widget-not-hiding/2622543/10 "2025-07-30T03:42:37Z")

</div>

> [@Elryk1](#):
>
> I would still like to know if beginplay in the player controller is the best place to create the widgets on player spawn, or if there is a better way to do it.

i prefer the controller because widgets and controllers are local only and every widget is owned by a player so it just makes sense.

you could keep it on the pawn if you use IsLocallyControlled but if you destroyed the pawn (respawn mechanic) you lose/duplicate all your widgets

> [@Elryk1](#):
>
> This also makes me wonder: I am setting a camera reference in the BeginPlay event

this should be fine
