I’m ashamed that i didn’t follow your suggestion. I’ll admit this is the first time I’ve used Pass-By-Reference with functions, and that I just noticed something:
So, in this function I’m loading a bunch of actors out of a save file (It’s basically a Rust looking building I saved as a prefab). All those BuildParts are individual actors. I need to capture those somewhere I can later access.
So, you see that before I clicked array I enabled ‘Pass-by-reference’. When I selected the array, the box greyed out. About 5-6 years ago forum chatter suggested that this was not supported.
I have no outputs BTW because I assumed that I was writing to the array I passed in by ref. What I get is say 20 array elements, then as soon at the function returns, it’s back to zero.
I’m not passing it back out, mostly because I know that a reference to anything in a function is invalidated the second the functions returns.
Interestingly I can pass in a struct, by ref, get the diamond, edit the array in the struct, and exit the function , array is empty.
Or… perhaps I completely missed your well presented point.