x

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"

Accessing variable from widget blueprint in actor blueprint.

Hi, I'm trying to access variable from widget blueprint in blueprint actor and change color of text and text itself. It doesn't update and when I check variable it says (Variable is not in scope) I made sure that variable is public.

Is there some problem accessing variable from widget blueprint like that?

Thanks

alt text

Product Version: UE 4.19
Tags:
more ▼

asked Oct 13 '18 at 10:34 AM in Using UE4

avatar image

ameson
12 2 3 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

hello. check the screenshot for setup. don't forget to tick the is variable option for the text block in the details panel. hope this helps ? if you have any question feel free to ask. alt text

2.png (226.5 kB)
1.png (257.1 kB)
more ▼

answered Oct 13 '18 at 12:53 PM

avatar image

Shadow Boss12
181 1 3 5

avatar image ameson Oct 13 '18 at 07:40 PM

Hi, I'm trying reproduce your settings but I can't connect two nodes together and getting this :

alt text

cantconnect.png (242.9 kB)
avatar image Shadow Boss12 Oct 14 '18 at 11:08 AM

hello. sorry for the late reply. did u create the text variable in your widget blueprint and did u compile and save it before trying to accessed it in the blueprint class. this method should work because i already tested it and its working fine.

avatar image ameson Oct 14 '18 at 06:34 PM

Ye I did :/ everything is exactly same as in your case. I'm trying to access it from blueprint actor was your same type?

avatar image ameson Oct 15 '18 at 08:25 AM

I didn't set the binding for TextBox :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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