# Why does some UIs doesn't become visible?

**URL:** <https://forums.unrealengine.com/t/why-does-some-uis-doesnt-become-visible/2154316>\
**Category:** C++\
**Tags:** unreal-engine, bug-report, CPP, question\
**Created:** [November 27, 2024, 12:52pm UTC](https://forums.unrealengine.com/t/why-does-some-uis-doesnt-become-visible/2154316 "2024-11-27T12:52:17Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justrenis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Justrenis](https://forums.unrealengine.com/u/Justrenis)\
**Post date:** [November 27, 2024, 12:52pm UTC](https://forums.unrealengine.com/t/why-does-some-uis-doesnt-become-visible/2154316/1 "2024-11-27T12:52:18Z")

</div>

When i toggle UI in code,some UIs just doesn’t become visible, when i setup Widget BP of UI, i make them all SelfHitInvisible, since if i make them Collapsed then it almost never will be visible whatever i do, thus i make them collapsed at runtime, when game is started and then toggle UIs whenever i need it, but still, not every UI works, whats the deal with this, do i miss something?  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/optimized/4X/3/e/0/3e03a16740a1343cfd0224377bdf75ee7aca4d82_2_690x17.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/e/13e3ae3c8960835afc4120f616394c70307b42ef.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/a/4/ca4f5ada9a2a42b4d0341780c4440a1b9c735fdf.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 27, 2024, 1:06pm UTC](https://forums.unrealengine.com/t/why-does-some-uis-doesnt-become-visible/2154316/2 "2024-11-27T13:06:13Z")

</div>

> [@Justrenis](#):
>
> whats the deal with this, do i miss something?

What are the chances retainer material fails to deliver? Test it without it - at least you’ll eliminate one piece of the puzzle. Or do you use the same material for all of them?

* * *

> it almost never will be visible whatever i do

There’s not enough detail here. Perhaps you could provide an example?

---

<div class="post-metadata">

**Author:** ![Justrenis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Justrenis](https://forums.unrealengine.com/u/Justrenis)\
**Post date:** [November 27, 2024, 1:07pm UTC](https://forums.unrealengine.com/t/why-does-some-uis-doesnt-become-visible/2154316/3 "2024-11-27T13:07:40Z")

</div>

It is in invalidation box(all of UIs are except FPS one is in retainer, but they all work except that warning sign one), and now i tried when i resize the window in editor in-game, it becomes visible, why this happens?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 27, 2024, 1:12pm UTC](https://forums.unrealengine.com/t/why-does-some-uis-doesnt-become-visible/2154316/4 "2024-11-27T13:12:00Z")

</div>

> [@Justrenis](#):
>
> It is in invalidation box

Same icon, heh, fair enough. Hence the confusion. I thought `inv` was inventory or something 🤷

* * *

So you say it’s the `Invalidation Box` of the `CriticalDamageIndicator` that fails specifically? ~~Have you tried to `Render on Invalidation`?~~ - [edit] _this is not a thing_

---

<div class="post-metadata">

**Author:** ![Justrenis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Justrenis](https://forums.unrealengine.com/u/Justrenis)\
**Post date:** [November 27, 2024, 1:16pm UTC](https://forums.unrealengine.com/t/why-does-some-uis-doesnt-become-visible/2154316/5 "2024-11-27T13:16:10Z")

</div>

Yeah my bad about confusion, sorry.

Hmm, how to render on invalidation?

Is it something like this?  
Example:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/optimized/4X/2/a/3/2a313367ac2eafcc3666ddd80b11d811c7de7de7_2_690x41.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 27, 2024, 1:21pm UTC](https://forums.unrealengine.com/t/why-does-some-uis-doesnt-become-visible/2154316/6 "2024-11-27T13:21:50Z")

</div>

Consider hiding / showing the entire Invalidation Box rather than just its child.

---

<div class="post-metadata">

**Author:** ![Justrenis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Justrenis](https://forums.unrealengine.com/u/Justrenis)\
**Post date:** [November 27, 2024, 1:28pm UTC](https://forums.unrealengine.com/t/why-does-some-uis-doesnt-become-visible/2154316/7 "2024-11-27T13:28:51Z")

</div>

The option “Render on Invalidation” only is on Retainer Box, Invalidation Box doesn’t have it;

I tried hiding instead of collapsing it didn’t work as well sadly(i use collapsed since i read that if it is hidden it is still rendered 🤔)

I’ll try now hiding/collapsing entire invalidation box, one moment…

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 27, 2024, 1:29pm UTC](https://forums.unrealengine.com/t/why-does-some-uis-doesnt-become-visible/2154316/8 "2024-11-27T13:29:56Z")

</div>

> [@Justrenis](#):
>
> The option “Render on Invalidation” only is on Retainer Box, Invalidation Box doesn’t have it;

My bad. Not sure why I said that, that’s the whole point of the invalidation… 🤦‍♂️

---

<div class="post-metadata">

**Author:** ![Justrenis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Justrenis](https://forums.unrealengine.com/u/Justrenis)\
**Post date:** [November 27, 2024, 1:31pm UTC](https://forums.unrealengine.com/t/why-does-some-uis-doesnt-become-visible/2154316/9 "2024-11-27T13:31:42Z")

</div>

Oh when i collapsed entire invalidation box it works perfectly, thanks! I’ll now change all of them 😄

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [December 27, 2024, 1:31pm UTC](https://forums.unrealengine.com/t/why-does-some-uis-doesnt-become-visible/2154316/10 "2024-12-27T13:31:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
