# 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:** 1\
**Showing post:** 2

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

---

_[View the full topic](https://community.stereolabs.com/t/body-tracking-with-ue5-the-easiest-solution-to-switch-the-avatar-in-game/10015)._
