Is there a way to lock UMG Image size?

When I choose a texture for my UMG image widget, it resizes the image widget to the size of the texture.

I’d like to just create an image, set it’s size, and when I add a texture, to have the texture conform to the image widget. How can I do this?

In the details panel, go to Appearance > Brush > Image Size. As long as you actually put something in there, it shouldn’t change.

Unfortunately, it does. When I add an image, it changes the size to whatever image is set.

I know this question is outdated but someone might still search for it (like me :smiley: ).
Bandage fix would be to just manually set the whole brush and submitting the desired image width and height each time when changing a widget image.

The more elegant way would be using a “Size Box” that overrides its children width and height:

218871-sizebox.jpg

2 Likes

try setting Vertical alignment to align top

The second solution is probably the best for those who use binding and therefore have not used event graph to set the image. Thx !