initializing a class reference member

anonymous_user_81655d74
Mon, 21 Oct 2019 16:58:05 +0000
Editor Scripting

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?

2 posts - 1 participant