Update skeleton rest pose of one instance of skeletal mesh
I'm currently trying to update the rest pose of the skeleton of my character to make it match some shape change.
To do this, I'm using the following code where MeshCmp is a USkeletalMeshComponenent and MyOffsets and MyBoneNames are my inputs.
This kind of works since my skeleton rest pose is indeed modified as expected by it is modified for all characters using the same skeletal mesh. Since most of my characters use the same base skeletal mesh, it's not what I'm after. So my question is : how could I modify the rest pose of the skeleton only for the instance of the given skeletal mesh component?
Thanks for your help.
asked Nov 12 '17 at 05:53 PM in C++ Programming
So I answer my own question in case someone ever stumbles on this question and hasn't figured out yet how to do.
It's so simple that I don't even understand how I missed it before: in fact, there is a function all set up for specifically doing that in the USkeletalMeshComponent class : SetRefPoseOverride which takes an array of FTransform as input and there you go...
answered Nov 19 '17 at 04:42 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here