I created a custom widget in UMG. It consists of a button, an image on the button, and a text under it, all in a CanvasPanel. I replaced the button’s textures in the style tab with my own circular button images. But when I place the widget inside another widget blueprint and change its Size_X and Size_Y (in the same ratio), the circle gets deformed instead of scaling properly. How can I solve this problem? (hopefully without creating a button class from scratch)
This is mostly likely because you’re drawing this image as a Box, which is buttons default setting. In the UMG Editor when you have the button selected:
-
Check your details panel
-
Check for the Style subpanel
-
Uncollapse the style subpanel if it’s not already uncollapsed
-
Check the “Draw As” dropdown and make sure it’s in “Image.”