Problems with SkeletalMeshMerge

Guys, are there those who use Skeletal Mesh Merge here? I took the code from the official documentation of the epics (https://docs.unrealengine.com/en-US/Eng … index.html), it works fine, the mesh flickers, but here’s the problem with sockets, in the AttachToComponent editor connects the actor to socket, but when I assemble the game, AttachToComponent seems to not see the skeleton sockets of the model, and attaches the actor to none. Any help in solving this problem will be helpful.

I have a same problem too.

this->SetSkeletalMesh(TargetMesh);
SkeletalMesh->RebuildSocketMap();