Hi,
I am trying to establish a pipeline for automatic socket creation on a Skeletal Mesh.
Here’s my code so far:
USkeletalMeshSocket * UHelperFunctions::DynamicCreateSkeletalMeshSocket(USkeletalMesh* SkelMesh, FName BoneName, FTransform RelativeTransform, FName SocketName)
{
USkeletalMeshSocket* NewSocket = NewObject<USkeletalMeshSocket>(SkelMeshAsset);
NewSocket->BoneName = BoneName;
NewSocket->RelativeLocation = RelativeTransform.GetLocation();
NewSocket->RelativeRotation = RelativeTransform.Rotator();
NewSocket->RelativeScale = RelativeTransform.GetScale3D();
NewSocket->SocketName = SocketName;
return NewSocket;
}
It seems to successfully create a socket, which is returned by the function, but does not show up in the respective SkeletalMesh asset.
Is there any way to achieve this?
Cheers,
Lena