USkeletalMesh* BodySkeletalMesh = UFunctionLibrary::GameData->PcBodySkeletalMesh; // in our project, game data is a static var to access game singleton where skeletal mesh asset is stored
BodyMesh->SetSkeletalMesh(BodySkeletalMesh);
HeadMesh->SetupAttachment(BodyMesh, FName(TEXT("NeckSocket")));
1 Like