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.
Good afternoon!
I have a problem: there is a base widget.
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.
Add them directly inside the WB_RadialBase
? UMG does not expose containers this way.
What I need to do is
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
Either this 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:
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.