Set padding on text object in blueprint - how to get user widget reference?

I am setting up some UMG templates. I would like to adjust padding for some text on a per instance basis.

But the Set Padding node requires a User Widget Object Reference.
image

How can I convert this Text Object to a generic widget object?

A workaround is to wrap the text in a grid panel:

image

then the grid panels padding variable can be accessed.

1 Like

The way to go is to cast to the pertinent slot type, providing it supports padding - most (all?) slots do. If the text is sitting in a border:

image

We’re accessing this above:

image

In short, the padding is dictated by the slot type the parent created for it. Here, the border created a border slot for the text.

3 Likes

that did. Thanks!

1 Like