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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Variable reset to default in a function bound to text

Well, this is definitely something I can't understand...

I have an in-game trade system; I create items dynamically and set an ItemData variable to each item:

alt text

Then I use ItemData in a function to display the item's name, price, etc. (binding it to text). Up to here, all is fine.

alt text

When I drag and drop an item to the inventory, I use a Refresh function to show the items left in the store.

alt text

The ItemData variable is set correctly. However, when the GetName function is called again (after Refreh), ItemData is reset to its default values:

alt text

Any ideas why this happens?

Many thanks!

Product Version: UE 4.8
createwidget.png (131.5 kB)
getname.png (82.3 kB)
refresh.png (298.1 kB)
more ▼

asked Aug 29 '15 at 03:21 AM in Blueprint Scripting

avatar image

15 3 4 6

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

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