# Random Text Not Showing in Widget(UE5.4)

**URL:** <https://forums.unrealengine.com/t/random-text-not-showing-in-widget-ue5-4/2622174>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [July 29, 2025, 8:23am UTC](https://forums.unrealengine.com/t/random-text-not-showing-in-widget-ue5-4/2622174 "2025-07-29T08:23:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkun](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kkun/32/1091564_2.png) [@kkun](https://forums.unrealengine.com/u/kkun)\
**Post date:** [July 29, 2025, 8:23am UTC](https://forums.unrealengine.com/t/random-text-not-showing-in-widget-ue5-4/2622174/1 "2025-07-29T08:23:05Z")

</div>

I’m trying to create a system where a ball passes through a specific location and a random event message is displayed. Once a message is shown, it should never appear again.

The random selection of messages works correctly, and duplicates are avoided as intended. However, the message is not being displayed on the screen. I suspect something is wrong, but I can’t figure out what.

Most of the logic is handled in the Game Instance.

I’m using two Widget Blueprints:

- One contains only a Canvas Panel and a Text Block (for showing the message)
- The other contains a Canvas Panel with a Vertical Box (for listing/displaying messages)

Could you help me understand what might be going wrong?

I’m using Unreal Engine 5.4.

Apologies for the mix of languages in the Blueprint.

Thank you in advance!

[snippets](https://dev.epicgames.com/community/snippets/2W4l/unreal-engine-random-message)

 ![スクリーンショット 2025-07-29 163316](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/0/4/404a48f4b93789a0cf6d2a304ef2e5a9881cf840.png)  
 ![スクリーンショット 2025-07-29 163341](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/8/4/38422d818d729dbd2eb26368e020f181640087ea.png)

---

<div class="post-metadata">

**Author:** ![alirizvi7861](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alirizvi7861](https://forums.unrealengine.com/u/alirizvi7861)\
**Post date:** [July 29, 2025, 12:40pm UTC](https://forums.unrealengine.com/t/random-text-not-showing-in-widget-ue5-4/2622174/2 "2025-07-29T12:40:17Z")

</div>

@kkun how you are displaying both of the widgets, like are you adding both of the widgets to viewport?

---

<div class="post-metadata">

**Author:** ![kkun](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kkun/32/1091564_2.png) [@kkun](https://forums.unrealengine.com/u/kkun)\
**Post date:** [July 30, 2025, 1:41am UTC](https://forums.unrealengine.com/t/random-text-not-showing-in-widget-ue5-4/2622174/3 "2025-07-30T01:41:17Z")

</div>

@alirizvi7861

Thank you for your question!

Regarding how I’m displaying the widgets:

My implementation displays the widgets as follows:

1. **`WBP_MessageLog` (the main container widget)**:

- This widget is created once at game start (within the `Event Init` event of my Game Instance) and then added to the viewport using an **`Add to Viewport`** node.
- This widget contains a `Vertical Box` (named `MessageContainer`) which serves as the container for messages.

 ![スクリーンショット 2025-07-30 102522](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/b/62b4f2922451e431050aacf7797a3208cc340e14.png)

1. **`WBP_EventDisplay` (the individual message display widget)**:

- This widget is created whenever a new message needs to be displayed (within the `ShowNextMessage` event of my Game Instance).
- After creation, this `WBP_EventDisplay` widget is added as a child to the `MessageContainer` (Vertical Box) within my `WBP_MessageLog` using an **`Add Child`** node.

 ![スクリーンショット 2025-07-30 102726](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/d/a/fda33c1da64e0b3289983165485d0fde7b9f9153.png)

So, only `WBP_MessageLog` is directly added to the viewport, and `WBP_EventDisplay` widgets are added hierarchically as children of `WBP_MessageLog`.

Is this approach incorrect?

---

<div class="post-metadata">

**Author:** ![alirizvi7861](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alirizvi7861](https://forums.unrealengine.com/u/alirizvi7861)\
**Post date:** [July 30, 2025, 12:08pm UTC](https://forums.unrealengine.com/t/random-text-not-showing-in-widget-ue5-4/2622174/4 "2025-07-30T12:08:40Z")

</div>

@kkun so you can see on screen messages shown by print string?  
I think there’s problem with your individual message widget.  
try adding those manually as child in container with some text not at runtime but in your parent widget, just add 2, 3 and check if they are shown there, i think there’s alignment issue perhaps.

---

<div class="post-metadata">

**Author:** ![kkun](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kkun/32/1091564_2.png) [@kkun](https://forums.unrealengine.com/u/kkun)\
**Post date:** [August 2, 2025, 6:37am UTC](https://forums.unrealengine.com/t/random-text-not-showing-in-widget-ue5-4/2622174/5 "2025-08-02T06:37:14Z")

</div>

@alirizvi7861

Thank you for your reply.  
I’ve confirmed that the random message is being selected correctly using the **Print String** node.  
Also, if I replace **Add Child** with **Add to Viewport** , the selected message does appear.

As shown in the screenshot, I tried adding both a Text Block and the widget into a **Vertical Box** , but nothing seems to be displaying.

[Here’s the full overview:](https://dev.epicgames.com/community/snippets/2W4l/unreal-engine-random-message)

 ![スクリーンショット 2025-08-02 151430](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/6/c/a6c455e0256f86779dd0450b270db41802323cd6.png)  
 ![スクリーンショット 2025-08-02 151504](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/a/54aca6efbeca67f251741ec7eacdb0076969f50d.png)

---

<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 2, 2025, 9:53am UTC](https://forums.unrealengine.com/t/random-text-not-showing-in-widget-ue5-4/2622174/6 "2025-08-02T09:53:49Z")

</div>

Hey there,

Have you tried using _“Add Child to Vertical Box”_ instead?  
If that doesn’t work try playing around with anchor points in EntryDisplay widget.

Is it possible that one of your timers is interfering with it too?

---

<div class="post-metadata">

**Author:** ![kkun](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kkun/32/1091564_2.png) [@kkun](https://forums.unrealengine.com/u/kkun)\
**Post date:** [August 6, 2025, 4:04am UTC](https://forums.unrealengine.com/t/random-text-not-showing-in-widget-ue5-4/2622174/7 "2025-08-06T04:04:55Z")

</div>

@DonBusso

Thank you for your reply.

I have tried replacing “Add Child” with “Add Child to Vertical Box,” but the widgets still do not appear.

I also experimented with changing the anchor points as you suggested, but it did not resolve the issue. To rule out any timer interference, I disconnected the timers and tried to display the widget with a left-click event, but it still did not show up. I even temporarily disabled the “RemoveFromParent” node, but the result was the same.

The “IsValid” check placed before “Create WBP EventDisplayWidged” confirms that the Vertical Box reference is valid and functioning correctly.

For clarity, I have also set all text and the Vertical Box to be anchored to the top-left corner, but this has not made them visible either.

(A screenshot of the new layout is attached.)

 ![スクリーンショット 2025-08-06 124145](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/b/c/4bcb33113ea24a0ab44b2dd2e07b157d94f3e585.png)  
 ![スクリーンショット 2025-08-06 124116](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/c/f/9cf6554ec1ae12955465eac6a762b0848d4a78a0.png)

Thank you for your continued help. I’m looking forward to any further suggestions you might have.

---

<div class="post-metadata">

**Author:** ![kkun](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kkun/32/1091564_2.png) [@kkun](https://forums.unrealengine.com/u/kkun)\
**Post date:** [August 8, 2025, 8:31am UTC](https://forums.unrealengine.com/t/random-text-not-showing-in-widget-ue5-4/2622174/8 "2025-08-08T08:31:41Z")

</div>

I tried replacing the Canvas Panel in `WBP_EventDisplay` (the one containing the Text Block) with a Size Box, but it still didn’t display.  
Even when using just the Text Block on its own, the result was the same.

I followed the method shown in the screenshot to check whether the widget is actually being created, and it seems to be created correctly.  
Just in case, I also checked `WBP_MessageLog` (the one with the Vertical Box), and it also appears to be created properly.

Is there anything else I should check?  
I’m not sure where the issue is…

 ![スクリーンショット 2025-08-08 170654](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/2/2/822f0c17c8431d0a2c83e69fe1928c52f0214391.png)  
 ![スクリーンショット 2025-08-08 173035](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/d/23df9d50796ae7c665e41d175a64b22a25c20bfe.png)  
 ![スクリーンショット 2025-08-08 173007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/c/5/dc50a362ed5d6ae3a44b247c6589d1c3faeebaf4.png)
