Changing widget blueprint instances in editor

Basically I have a custom widget blueprint and I want to be able to expose some child variables and there doesn’t seem to be a way to do it…

I want a custom button that instances can have different background image, text, and onclick events that show up and work in the editor, I can get it all to work at run time in the game.

The designer defaults everything you make to public but they don’t show up on the instance… If I make my own copies, those will… What gives?

Example setup:

Variables

Design

Instance

New texture variable with same properties (visible and editable):

A seperate, non-designer created variable

How do I expose certain child variables to be editable by instances?

Thanks for your time.

I figured this out using bindings… But they don’t show up in editor until you do something else.

Create variables then selected them as bindings on the blueprint…

http://i.imgur.com/G2oYdvB.png

Select the bindings

http://i.imgur.com/cF0MfhJ.png

Then they will show up on the instances

http://i.imgur.com/ZqBIYmT.png

Preview doesn’t update though… To fix that, you can do the following in the construction blueprint…

http://i.imgur.com/OyrBvfe.png

1 Like

Hey there! Thanks for the thorough explanation. I just wanted to leave a small note. Looking at the last image I see you use the Event Construct, which for me did not work. I am now using Event Pre-Construct, which works like a charm.