properly scale image as border in UMG

Because UMG is not clever enough and it uses the size of the asset itself. Image size would be important were you to use a material for 9-slicing:

The png file has 640 x 640 pixels.

.2 margin is 128px from each side. If your border is smaller than 256 in UMG, it will look distorted. As a general rule of thumb, go with the smallest image you can get away with and then scale it up.

Is the smallest element going to be 640x640 in UMG? Also, margins above .49 make little sense for a border. Make the image 64x64 and then it will look ok for all sizes from 64 upwards.

2 Likes