How to animate a 2D character using 2D pose estimation?

I’m using mediapipe inside Unity (using MediaPipeUnityPlugin), which provides me with framewise 2D human pose estimations of the input Webcam.

Now I want to transfer the 2D pose estimation results onto an animated 2D character? The challenge is that, given the pose is 2D, the character and it’s bones have to scale based on how close the player stands to the webcam.

How can I animate a rigged 2D character in Unity using these pose estimation results? (It feels like there should already be a solution for this, especially in Unity, but so far I could not find one)

Update:
So I started going in two directions
A. brute force: importing every body part as individual sprite, define a root point, scale and rotation for every body part and apply it to every sprite individually
B. using sprite editor / 2d animator: define a bone structure on the complete sprite (imported via PSD importer. Then I try to translate, scale and rotate the body parts according to keypoints coming from my pose estimator

Problem with A: all sprites are disconnected, leading to an ugly “Rayman”-like figure

Problem with B: trying to change the bone length interactively is not working (not sure if this is even possible). Writing changes to the sprite-renderer via C# script has no effect. It’s probably because the sprite renderer component is already controlled by the bone structure and therefore not reacting to changes via C# script