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

Hi folks!

I a bit of a newbie when it comes to Blueprints in UE. And I am trying to figure out how to easily change the avatar while in play mode. I am not referring to the actual interface, but to what blueprint and which part of it I should change in order to switch between 4 avatars that I already prepared (I did the IKRig, Retargeter, Animation Blueprint for each avatar)

Thank you so much!!!

PS: As an extra note, I am planning to use OSC messages coming from another app (Max MSP) to switch as I did this another project.

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

Hi folks! And hi Benjamin!

I thought the last comment was a solution, but unfortunately, it does not switch for all the players. Only for one.

Like I was saying in the last message, I am trying to switch in-game the avatar from another app via OSC. And like you see in the attached images, depending on the OSC tag I get, I switch between the preset ABP + Skeleton Mesh pair. But it only switches one single avatar. So for example if there 2 players, it only changes for one player but not for the other.

Can you please tell where I should put the OSC code in order to change the avatar for all people?

Thank you!!