Any way to change the bone mapping of an avatar via script?
I am seeing Animator.GetBoneTransform(), but no ‘set’ method.
Also, is it possible to grab the avatar that is created when importing an asset?
I only see documentation on how to access an avatar that is attached to to an animator.
You may want to try and change the Transform that is returned from calling GetBoneTransform(). If this is an object by reference(it smells like it is), then changing the properties of the Transform from the GetBoneTransform() call will be reflected because it is a reference not a deep copy/clone of the object.
I’m assuming that the reference from the GetBoneTransform function/method is good enough. But i’m only guessing, so the returned Transform type from calling GetBoneTransform, any manipulation of the object is live… You are getting a direct reference to the transform that you show in you image, if there is one to return.
So i changed the position by getting the transform from the GetBoneTransform call, but the returned Transform was a reference, any direct manipulation directly affects the bone transform, no set needed. But this is a guess and i’m guessing because it doesn’t have an explicit set method/function.