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: 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.?
asked Dec 29 '18 at 06:33 PM in Blueprint Scripting
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.
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.
answered Dec 29 '18 at 06:37 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here