Set horizontal alignment of another Widget inside UMG BP(for a text style dialogue)

I have this Widget i created called “Message”. And I have one called “Dialogue”, I am spawning the message widget inside a scroll box, witch is inside my dialogue one. I would like to Change the horizontal alignment of the message umg variable, inside my dialogue widget using blueprints. Here is what I have.

The top one is my dialogue widget, and the bottom is my message widget.
Thank you for your time, Be safe, and have a good day.

2 Likes

I am spawning the message widget
inside a scroll box

Add Child returns a basic slot type, cast it to whatever the parent container is and set alignment like so:

Alternatively, you can do it like this, after spawning all children:

Essentially, it’s the parent panel’s slot that handles children’s behaviour within.


Some containers allow adding children to the type correct slot:

The scrollbox does not, you’ll need a cast.

9 Likes

Thank you so much! It worked like a charm. Have a wonderful day my man!