How to save a Skeletal mesh component content?

Hello,

I have a character which is built from skeletal meshes parts which can be changed during run-time.

The problem I have is on restoring to the default values, those are set up by the art team and might be changed often.

So the question is what to save to later re-spawn the appropriate component content.
So far, I tried storing all the component archetype’s which I guess contains all the information I need (let me know otherwise)


UObject* Object = myDefaultComponent->GetArchetype();
myArchetypeObjects.Add(Object);

Then use the archetype information in the SpawnParams



FActorSpawnParameters SpwanParams;
SpwanParams.Template = ???;/// how should I create the template ????
USkeletalMesh* DefaultSkelMesh = Cast<USkeletalMesh>(GetWorld()->SpawnActor(SpwanParams));
MySkeletalMeshComponent->SetSkeletalMesh(DefaultSkelMesh);




Thanks in advance

Saving the Skeletal mesh was enough, I didn’t need to respawn the actor.
Thanks