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

**URL:** <https://community.stereolabs.com/t/body-tracking-with-ue5-the-easiest-solution-to-switch-the-avatar-in-game/10015>\
**Category:** Unreal Engine\
**Created:** [September 26, 2025, 1:55pm UTC](https://community.stereolabs.com/t/body-tracking-with-ue5-the-easiest-solution-to-switch-the-avatar-in-game/10015 "2025-09-26T13:55:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ygreq](https://community.stereolabs.com/user_avatar/community.stereolabs.com/ygreq/32/5041_2.png) [@ygreq](https://community.stereolabs.com/u/ygreq)\
**Post date:** [September 26, 2025, 1:55pm UTC](https://community.stereolabs.com/t/body-tracking-with-ue5-the-easiest-solution-to-switch-the-avatar-in-game/10015/1 "2025-09-26T13:55:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ygreq](https://community.stereolabs.com/user_avatar/community.stereolabs.com/ygreq/32/5041_2.png) [@ygreq](https://community.stereolabs.com/u/ygreq)\
**Post date:** [September 30, 2025, 9:01pm UTC](https://community.stereolabs.com/t/body-tracking-with-ue5-the-easiest-solution-to-switch-the-avatar-in-game/10015/2 "2025-09-30T21:01:10Z")

</div>

This is my solution for switching avatars for 1 player. Still struggling to change for 2 or more players. See the [other post](https://community.stereolabs.com/t/body-tracking-with-ue5-multiple-people-with-their-own-mesh-tracking-them/9946/8)

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.

 ![Screenshot 2025-09-30 235538](https://community.stereolabs.com/uploads/default/original/2X/c/c47c22587619dde25e19c9dd46fa25b373f37874.jpeg)

---

<div class="post-metadata">

**Author:** ![ygreq](https://community.stereolabs.com/user_avatar/community.stereolabs.com/ygreq/32/5041_2.png) [@ygreq](https://community.stereolabs.com/u/ygreq)\
**Post date:** [November 24, 2025, 10:35pm UTC](https://community.stereolabs.com/t/body-tracking-with-ue5-the-easiest-solution-to-switch-the-avatar-in-game/10015/3 "2025-11-24T22:35:50Z")

</div>

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!!

 ![Screenshot 2025-11-25 002743](https://community.stereolabs.com/uploads/default/original/2X/6/61e0623a30876926d236580de8d7bdbba61f8514.jpeg)  
 ![Screenshot 2025-11-25 003026](https://community.stereolabs.com/uploads/default/original/2X/d/d4fc1a13e299cd43fd1fd453d218caea19907999.png)  
 ![Screenshot 2025-11-25 003043](https://community.stereolabs.com/uploads/default/original/2X/e/e8fb208a7bf4d133dfd8295694f88ef06a99021e.jpeg)
