Body Tracking with UE5: The easiest solution to switch the avatar in-game?

This is my solution for switching avatars for 1 player. Still struggling to change for 2 or more players. See the other post

I don’t know how to use arrays so the code is not clean in this respect.

Inside of BP_ZED_Manny, I get a value (from 0 to 10 in this case) from another program (Max MSP) via OSC, and depending on the value, using Set Anim Instance Class nodes, I switch the ABP related to a specific avatar and then I use an Async Load Asset node to load the skeletal mesh for that specific avatar, and then Cast to Skeletal Mesh and Set Skeletal Mesh Asset. And it works.

I do have some minor errors.

  1. I sometimes get a T-pose with the avatar before switching to the new avatar. But just for a millisecond.
  2. When I first try to select an avatar, the old avatar disappears. And I then reclick in order to get the new avatar. After the first loads, it works ok.

1 Like