Child widget won't appear inside other widget

I have a widget that acts as the player HUD, it is the master widget. I have an inventory that spawns the slots as child widgets.

I have another actor which is a container. It has its own widget which spawns its children as the inventory widget does. This widget’s reference replaces a widget reference in the master widget.

No matter what I do, the children widgets won’t spawn.

If I add the container widget to the viewport, it works. But this isn’t ideal because then I can’t interact with the inventory. The slot widget references are totally valid. But in their blueprint, they do not construct.

The inventory widget’s children are created the same way as the container’s.

Master widget created → inside inventory widget children are added → Appears when master widget is added to the viewport.

Can anyone help me with this?

Inventory widget. Created at begin play.

Container widget, added to the same widget as the inventory. But no slots appear.

This is the result of adding it to the viewport and it appears as it should.

Function for adding widgets to container. It is the same as the inventory’s. This is attached to a for loop.

Function in Player BP for adding it to the viewport.

This sets the reference in master widget to the newly created container widget.

Remember, all of these reference are valid at runtime.

I’m clueless.

its a bit too small to read properly but maybe it is adding, you could have a bug with your size/ slots position or visibility. have a look at those