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):
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
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
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
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.