I have a problem with arrays in blueprints.
Although it should seem straight forward using arrays, I somehow cant properly add an element.
It seems any reference to the array returns a mere copy, thus any element added is added to that (useless) copy, whereas the original array remains untouched.
First, I tried to get a reference to the array itself. - Doesnt work. A copy is referenced…
Then I made a “AddElement” function in the same BP where the array resides and grab the array directly from there. - Doesnt work. No data is added.
Also, if I have an array of arrays, or an array of a struct that contains an array as a member, then it seems impossible to access that embedded array either.
The for-each loop node will also offer the struct array member as a copy only.
So how do I deal with arrays in blueprints
Any help is appreciated