Macro input pass-by-reference option missing

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?

318908-ue4editor-win64-debuggame-tlvzrxviay.png

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.

2 Likes

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

2 Likes

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:

318923-screenshot-2020-10-16-152859.jpg

It would make little sense to have it any other way. Blueprints already copy enough.

Yes, that would be great!