UI button scaling

Hello.
I’m still somewhat new to unreal engine, and learning it, in my spare time.

I’m learning about widgets and ui at the moment, and got a question.
I got this sprite, meant to be used for a ui button, and I was hoping unreal engine would have a feature, so I could scale the sprite, with the button, without the white corners getting stretched.

Thanks in advance.

UiFrame

As long as you maintain the aspect ratio, it won’t stretch. Use the overlay component to add a layer (icon) on top of your background border.

1 Like

What @56legion said is correct.

It’s worth playing and modifying the DPI Scaling to fit your expected default screen size when working with UI. When you open your UMG Widget, in the designer view you can modify the DPI Scale:

1 Like