How can I set the UMG widget's layout when I use blueprint add child widget

I know how to set Common widget layout in UMG.
but if I use blueprint add a common widget as another UMG’s panel’s child.

How can I set the layout for the common widget

AddChild returns the PanelSlot object that the child is contained in, cast it to the correct slot class and you can adjust the layout properties there. So for example, CanvasPanel’s give their children CanvasPanelSlots.

Cheers,
Nick