Blueprint Suggestion: Variables by Reference

When I have many things that share a base class, and I want to be able to reference them both as individual named items, and then do “generic” things to them, it would be quite helpful to be able to pass reference-to-variable to a Blueprint function.

For example, “create UI widget instance of class C, assign it to a member variable, attach it to the view” is a very common thing to do, but I can’t really turn that into a function or macro, because I can’t pass in “the member variable name to assign the created object to” as an argument. Reference-to-variable as a type would solve this.

I haven’t tried it yet but you can mark function arguments as Pass-by-Reference. This is with UE 4.8.2, but I seriously doubt they removed this functionality in 4.9.

57378-passbyreference.png

Is that what you’re looking for, or do you mean something else?