How to set user's widget size in editor?

Hello. I want to create widget with error message and spawn it when user do something wrong, and I want it to take only a part of the screen. I created widget with custom size (doesn’t work), and set size box as a root (overriden parameters doesn’t work too):


but when I’m spawn widget it appears with filling all screen:

Spawn BP:

How to fix that?

You should not use custom. Select Desired.

Then, in your widget, add some element and determine it’s size. For example, in my widget I added image. You can set custom size of that image, and then give it render opacity so it’s not visible, but you can use it to determine size. This is how I done it with my widgets. And this works for me :slight_smile:

image

4 Likes

Well, I tried all of this and it doesn’t work. But there is an answer in your screenshot - with canvas panel everything is good. Do you know where I can find more about settings “desired” “custom” and others? I can’t find it at all.

Why do you need more, this works like a charm? I have used it to create whole UI for my game.

Because I want to understand what I’m doing. And all that settings don’t have any tips about what’s it for.