Using BP event trigger to update widget variable

Hi everyone. I really appreciate all the help on this forum and this is the first time I couldn’t to find an answer to a problem.

I have set up a widget that uses a variable to find the ‘name’ for a row in a data table. By changing the ‘name’ variable I can quickly lookup the data I want for my text boxes in the widget.

Now I would like to use trigger boxes in my level to update the ‘name’ variable in my widget BP. So that when I enter an area of my level the variable changes and this updates the information in my widget (through the data table).

It seems like it should be very simple. I just want to use a trigger box to change a variable in a widget. Can anybody help me?

Hi Steve.
What do you mean by a reference? I’m unable to access or update variables in the widget.

Sure that is pretty simple to achieve. All you need is a reference to the widget. When you create the widget that will give you a reference you can use to access the variables on the widget.

A reference is just a variable of the class type you are trying to access, you need the reference to access variables and functions on that class. For example, I created a variable inside a widget:

Then in another blueprint I create the widget and save it as a reference, as you can see I can drag off the reference and access the variables inside the widget.