Hi, i’m a newbie for UE4
i met a problem, when i passed a Map container as a reference into a function, the map container is reference type correctly, but after i used “set” node to set the map container to a variable, then the new variable is not a reference of origin data anymore, why?
And more, i tested to use a user defined blueprint type(derived from Object) passed into a function and use a “set” node to set a variable, then the new variable is still a reference of origin data.
I know its an old post but since there was no reply and this was the first google recommendation I’ll leave an answer for anyone dealing with the same problem.
For some function parameter types you have to manually flag them as Pass-by-ref to be able to change them inside a function, this is usually necessary for Dictionaries and Structs
2 Likes
I have not pass-by-ref option in details panel, for my parameter. @Hynnax