Calling an event to open a door from within a UI.

Hello, I am new to this.

I have been wanting to have it to when someone clicks a button inside a UI it will then call an event which is inside a door blueprint. I can’t seem to reference it however, I was looking through previous works where I created a variable inside the UI and set it to be an object reference of the door. I then set it to Instance Editable and Expose on spawn however I don’t know how I did the rest.

The problem is, you can set the reference beforehand, but the widget doesn’t exist until runtime. So, you can use something like

Hi,to fill the variable you created in UI, you should find out where you create the UI, in your case, it maybe the door. when the door creates the UI ,you can plug in Self (the door itself ) to the “create widget node”,since you exposed a variable, it will be there.