I created a class deriving from the basic character class. I want to write a function to change its SkeletalMesh-Component.
Now I know there is a variable “Mesh” in the Base Character class which contains the information about the Characters mesh. But how do I change/swap this mesh? Thanks
when I do it like “Mesh->SkeletalMesh = New_Mesh” it doesen’t change the mesh, but puts the old mesh in a t-pose position and cancels to play the idle animation.
I’ve seen references it’s bad to hardcode asset references, but I don’t understand how you could random or let the player select a new skin without this.