Why can't I add something to the “Structure Array” in “Structure”?

As you can see in the title, it is not added. I press the I button and there is no change in the array.

Body Part Structure (Example):

Not sure, but I think the only way to modify a struct is to use ‘set members in struct’ node. And even then, if any of the earlier nodes (before the break node) are giving copies instead of by reference, then you’ll have to re-add the struct to the values set as well.

So start by adding a ‘set members in struct’ node and set the array after the ADD node.

If that doesn’t work, keep the above changes and also re-add the entire struct to the Values set.

I’m so confused for a second. Can you send me a photo as an example?

it would look something like this


when you drag off the varible you’ll get your options and you want the set members in “blank” node

then when you click on that node youll have options pop up on the left side (at least for me) of which things you want to change.

even SetMembers alone wont work because you’re setting the value in a copy.

your Values and Random node both return a copy, anything you do to that copy is lost unless you add it back to the Map which is one option.

be careful with Random nodes too as they are pure, you should probably save the return to a local variable

1.Test

2.Test

I tried the ones above and none of them worked, am I doing something wrong?

as i said, everything you’re editing is a COPY
you have to Add the updated copy back to the Map

so get your BodyPart Map → Add and your value is the StructOut

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.