Hello everybody!
We have a live stream of motion data, that gets applied to a model in Unity. Now we are trying to record the animation within Unity, which works with a generic animation (by getting the transforms of the bones every FixedUpdate and generating AnimationCurves from that data at the end. We are saving the animation with CreateAsset and SaveAssets as an anim-file).
But since the generic animation only works on the character it was recorded with, we would like to make the animation humanoid via code. We found AnimationClip.humanMotion, but the information in the documentation is not really helpful and all questions regarding it, have no answers. So our question is:
How can you make an animation, that was generated at runtime, work with humanoid avatars?