No, the Blueprint VM doesn't support returning types by-reference.
You can have a non-const reference parameter that will appear as an output pin on the BP node, but you're still getting back a copy.
Structs are basically treated as value types. If you want to be able to pass large amounts of data around without copying it then you'll have to put it inside an object (which you'll be able to pass/return by-pointer).
FWIW references don't matter much to BP functions, as internally they always copy inputs in by value, and copy outputs back by value.
answered Dec 18 '18 at 03:28 PM
Jamie Dale STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here