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"

Setting specific stuct value without having to reset others

I have an inventory system that uses an array of structures that contain data on each item and i am making a system for cooking food in the world. (i.e placing the food on a stove in the world) and I have another structure in my item data structure that contains all the info about the food details. but in order to set this I have to break the item data of the first item and then make it again, when I do this I then have to reconnect all the other pins to the other one. this makes it rather annoying to recombine new pins every time I add a new value to the item data structure. So I was wondering if there is a way for me to set one value specifically while having the others untouched. here is a picture of what I mean:alt text Would there be a way for me to only set the food info value while not having to connect all the other pins such as the "name" "weight" "details" etc.?

Product Version: UE 4.21
Tags:
struct.jpg (75.3 kB)
more ▼

asked Dec 29 '18 at 06:33 PM in Blueprint Scripting

avatar image

TuXsOrDs
112 9 10 16

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

1 answer: sort voted first

When setting a single value of a struct, you use the "SetMember" node, which lets you specify which one, so you don't have to re-set the whole thing.

alt text

when you select the node, the details panel will show you all available options, and those enabled will show as pins.

This updates only the chosen values of the struct, leaving the others as they where.

0.png (46.6 kB)
more ▼

answered Dec 29 '18 at 06:37 PM

avatar image

Evigmae
1.6k 7 3 8

avatar image TuXsOrDs Dec 29 '18 at 06:58 PM

Thank you so much this helps a lot!

(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