Spring arm attachment to skeleton mesh c++

I’d like to attach spring arm to skeleton mesh but “attach to” or “attach to component” doesn’t work. Also I want to use socket. So how do I do that please help me.

If you mean inside the constructor, you should use SetupAttachment instead

Yep that’s exactly what I mean. But this don’t work how I think it will work. So I do this in blueprint. Tkank you for answer.