Children of vertical box do not appear

Hey everyone
I’m running into an issue when adding children to a widget. Here’s my BP (of the widget with the vertical box) :


I call the custom event on begin play in my game mode.

My expected result : My widget should contain as much PlayerScore widgets as players in game.

My result : I don’t see any … the print string at the end returns “true”, so the PlayerScore widget has been created and added.

I tried to call the custom event from the C keyboard event. And I’m facing something else I don’t understand.

When Override Parent Binding is checked for C keyboard, my issue occurs.

However, when Override Parent Binding is unchecked everything works perfectly.

This proves my problem doesn’t come from any widget design.
Thanks by advance for any help

Sounds pretty normal, input consumption is a thing, a blueprint child overrides and consumes input.

Why would you override parent binding in a child? Asking as you may have a good reason to do so. What hierarchy structure are we dealing with here? Assuming there is a parent - child relationship between the blueprints here? Is there?

The widget the screenshots are from does not have a parent, there’s no hierarchy. What I said about C keyb event is what I found from debugging.

I still have no clue why my playerscore widget don’t show up …

Oh, hold on, forgot to mention something that might be important.
This widget is actually in a blueprint called Screen BP, which is placed in my level.

Ok so that is an important detail : it is a 3d widget that is displayed in my level.
When I try to display it as ‘’ 2d ‘’ (add to viewport) everything works great. But it doesn’t work in 3d.

Is there anything I should change in my Screen BP, check something maybe ?

Could you clarify a couple things:

  • there is an actor in the scene that has a widget component set to World Space, right?
  • you intercept the C key inside that actor and call some functionality in the widget, correct?
  • that functionality is not working or the node is not printing what you expect, or both?

This bit:

Could you just print Hello instead, without checking for validation? Does it print? If not, we need to take a step back.

Yes, Screen BP is an actor placed in my level. The root is a static mesh, and it has my widget as a child (set to world)

Actually, I tested the with the C Key in the widget bp after the ‘’ for each loop ‘’ and before ‘’ create widget ‘’.

Printing hello works fine.

How are you doing it?

Result for Override Parent Biding checked, and with the issue :

huh4

(I have a white panel, that is normal) Nothing shows up

Result for Override Parent Binding unchecked, and what I expect :slight_smile:
*
huh5

Btw do you know how I can get rid of that extra brightness ?

Where are you running this script?

You said you have an actor + widget component and then:

Actually, I tested the with the C Key in the widget

The above script clearly is not running in a widget.

Yes this is in the widget … Shouldn’t it ?

The widget component class is Screen_widget, and this script is running in the graph of Screen_widget

Widgets cannot process input like this. Maybe it’s a UE5 thing? Or some input listening I am unfamiliar with.

We’re both getting lost so I decided to make it simplier. This is in my GameMode :

I moved my script from the widget to the actor. Here is Screen BP :

The issue is nothing is visually added to the widget. Hello is correctly printed.

Any heerlp please that is getting me mad :skull:

@Everynone Widget isn't refreshing? - #9 by ImpBop
I think I’m facing that too, and the last answer seems to be a solution however I don’t understand it …

You’re not using list views, so no. Sorry, I do not understand your setup ATM

I’ll try to come back to this thread later on, tomorrow morning at the earliest, though.


Any errors in the log? How is that reference set?

How many screen BP actors are there? If there’s more than 1, I have a good idea why this wouldn’t work.

Ok, I’ll try to find a way to allow you to recreate the issue.

There’s only 1 screen bo in my level. The ScreenUIRef is set by creating the widget in ScreenBP (i have found no other way to set it)

Also, the issue is not specific to adding children to a vertical box. I tried by changing the border color, the node is executed by nothing change.