Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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?

Product Version: UE 4.20
more ▼

asked Oct 13 '18 at 11:17 PM in Blueprint Scripting

avatar image

1 1

avatar image Steve SybrSyn Oct 13 '18 at 11:53 PM

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.

avatar image Sputnik_3 Oct 14 '18 at 12:07 AM

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

avatar image Steve SybrSyn Oct 14 '18 at 10:40 AM

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: alt text

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. alt text

annotation2.png (37.5 kB)
annotation.png (148.9 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question