Understanding "Set Members in Struct" input and output pins

I am relatively confused about the output pin “Struct Out” in “Set Members In Struct”. This is because the Input pin “Struct Ref” let me assume that I pass the struct by reference and therefore the struct I feed in will be modified.
My best guess is that the original struct I passed in will be modified after the call of “Set Members in Struct”. But the output pin on the other hand let me assume that the original struct is not altered and instead a modified version of the struct is returned…

Please tell me what to expect when I do not use the output pin and continue using the original struct after calling the function.

Indeed you do not need to use the struct out pin. It’s there for convenience. Simply passing the structure in will modify the values of that instance. Naturally you can test this by printing some of the values before and after.

1 Like