initializing a class reference member

Simple question but not sure I’ve found a good answer after digging around. How do you initialize a class member reference variable?

Example:
My ActorComponent has a TArray<>& member variable.

Ideally one of my constructor arguments would be a TArray<>& and then I would initialize the class member in the constructor. But that is not possible with constructors in Unreal.

How would I initialize the TArray<>& in my Actor Component?

1 Like

A little late, but I don’t think it’s possible to have reference member variables in UE4 since, as you’re already aware, we can’t modify constructors without modifying source.