Is there a way to set "Set to Content" as a default for a Widget Blueprint?

I have created a Blueprint Class for Button, and Text, and used them in a Widget Blueprint to create a custom Button Template. I removed the Canvas Panel and replaced it with a Size Box, which I set to 144 x 42 in the override width and height of the Size Box. This looks great in the Widget Blueprint, but when I drag this into my main menu Widget Blueprint, the size is changed and the button does not render correctly unless I enable “Size to Content” for the button after adding it to the blueprint.

The question I have… is there a way to set the “Size to Content” flag so it is a default? I want to be able to drop a button into the blueprint, and have it render correctly, without having to manually select the “Size to Content” checkbox for every button.

Here is how it renders within “Size to Content”.

image

Can you try this in the custom Button Template:

Do tell if it works, curious.

2 Likes

Unfortunately it had no effect, but appreciate the assistance. I will continue to experiment. Maybe there is another approach to this I can use.

@Everynone great news… your proposed solution worked great, My apologies. I made a mistake when wiring up the nodes, and discovered my mistake this morning. I attached the nodes you provided to the Pre Construct node and it works like a charm. Thank you very much.

1 Like

Ah, cool. Never tried that before. Glad it worked!