It used to be possible to make a macro input pass-by-reference just like a function, but now I can’t.
Is this intentional or a bug?
If it is intentional, what is the reason and is there a good workaround?
It used to be possible to make a macro input pass-by-reference just like a function, but now I can’t.
Is this intentional or a bug?
If it is intentional, what is the reason and is there a good workaround?
and someone else on answerhub - BP methods/macros no longer support passing arguments by reference? - Platform & Builds - Unreal Engine Forums
I have removed it with the following PR: https://github.com/EpicGames/UnrealEngine/pull/5895
Macro inputs are always by-reference, you simply cannot pass a copy of a variable for a macro.
oh I see, perhaps it would be best to then decorate all of the macro inputs with the diamond pin that indicates a ref like it does in functions
someone else has the same issue on the forums - Am I going crazy or are we currently unable to set an input By Ref in macros? - Blueprint Visual Scripting - Unreal Engine Forums
It’s missing (if it was ever present) but it’s working:
It would make little sense to have it any other way. Blueprints already copy enough.
Yes, that would be great!