The component is not attached to the socket via C++ code

Ah, yeah.

I used SetRelativeLocation to adjust the component position before using AttachToComponent.
For me that worked better than snapping.

You can either use SnapToTarget AttachmentTransformRule if it works for you as is, or use SetRelativeLocation to first adjust the position of the component to attach on spawn and then use the keep relative attachmenttransformrule.

1 Like