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"

Get a variable from one widget for use in another

My problem is I'm setting a variable from one widget (IPaddress) abd then displaying it in another, but the IPaddress never gets displayed and I'm receiving no error message. Any advice?

alt text

alt text

Product Version: UE 4.19
screenshot-01.jpg (40.8 kB)
screenshot-02.jpg (33.6 kB)
more ▼

asked Apr 25 '18 at 07:08 PM in Using UE4

avatar image

3 1 2 3

avatar image Nebula Games Inc May 01 '18 at 11:54 PM

Are you trying to display this to the screen? Post screen shots of how you create both widgets, and where these functions are located. There are so many things that could be going wrong here won't be able to tell without more info

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

Check whether you're Get ing the correct widget instance in Get All Widgets of Class - that it's the same widget as the one that set its own IP Address variable, and not another one that is Destroyed but still exists in memory and hasn't been garbage collected yet.

more ▼

answered May 01 '18 at 10:09 PM

avatar image

3.7k 18 18 15

(comments are locked)
10|2000 characters needed characters left

Widgets should only be getting information and never providing it themselves. If you want feedback from a widget like button presses it is best if it is handled through binding to event dispatchers. My best guess is that you are trying to get a variable from a widget that is on another client. Widgets only exist locally so other players have no knowledge of their existence.

more ▼

answered May 02 '18 at 12:26 AM

avatar image

536 1 4 6

(comments are locked)
10|2000 characters needed characters left
Your answer
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