Attach UArrowComponent to Skeletal Mesh Component socket in Constructor. C++

Hi guys,

I have an actor component with skeletal mesh component inside. I try to create arrow component and attach it to socket using SetupAttachment() inside constructor. But when I compile it, Skeletal Mesh Asset returns nullptr (Skeletal Mesh Asset is set inside blueprint) and arrow is attached to component, but not socket.

Thanks.

Perhaps you should do it in PostInitializeComponents, since Blueprint changed properties are not ready when the constructor runs