I’m back to UE after some break. Previously I remember you could use “get (a copy)” or “get (a ref)” nodes when working with arrays to get a copy or reference to an object.
Right now I’m confused. When working with array of ints I can get a ref or a copy and they work as intended.
However, when I have an array of objects I can only use “get (a copy)”. When I try to use “get (a ref)” it gets automatically converted to “get (a copy)”. Moreover, it works like gettting a reference, NOT a copy.
Here’s an example BP of a barrel:
In it I add self to an array, change an int and print the value from the object in the array. Since I’m working with a copy (supposedly), the value of object in the array should not change. But it does and in fact prints 25, instead of 0.
The get is “get (a copy)” node:
My questions are:
- why can’t I use “get (a ref)” node?
- why does “get (a copy)” node modify the original object, as if it was a reference?



