How do I alter the HorizontalBox alignment after runtime creation?

Hi!
Straight to the issue; I am trying to create a horizontal element for UMG during runtime, and it looks something like this:

So everything works up to the point of SetVerticalAlignment and SetHorizontalAlignment, which currently does nothing. Any ideas on how I can fix that?

I’ve been experimenting a lot, and still have no solution to this problem. Can anyone help me out?

Still no success over here. Are there any features planned to support what I’m trying to do?

Inside widget get the slot of the parent widget and form there access alignment.

225734-alignment.png

image


Make Sure you are casting slot as the right one. here horizontal box slot is VERTICAL BOX SLOT