How to add children to a widget from another widget

Good afternoon!
I have a problem: there is a base widget.


I need to add the child widgets to the RadialCanvas somehow from other widget.

Do you have any ideas?
Thx.

You will need to either spawn the widgets dynamically. Or, add a Named Slot to the WB_RadialBase, you will see it here. Named Slot acts a bit like a placeholder.

Yes, but im need more than one child

Add them directly inside the WB_RadialBase? UMG does not expose containers this way.

What I need to do is


but in a different widget, so add the children to the canvas in a different widget. :grimacing:

If you must do it from another widget, this can only done dynamically: run a loop → Create Widget → getCanvas from WB_RadialBase → Add Child To Canvas → Set Size / Position in Canvas

2 Likes


I came up with a kind of a ‘crutch’.

Made my own canvas.

Either this :point_up: or expose multiple Named Slots. I would do it dynamically inside the WB_RadialBase. Tell Init how many widgets to spawn and have it run on Pre Construct. Something along the lines of:

1 Like

Thank you very much for the advice

Your question is a bit confusing.

In the example you showed name “What I need to do is” you show a Canvas, which can hold as many as Widgets as you want.

However in your initial question you are asking to have the widget as a child of another widget. Which is a different story.

So if you want to replicate what’s on your “What I need to do is” screenshot simply drag the widgets you want on the Canvas Panel instead of on the Widget RadialBase.