dontworryD
Normalβ€’2y agoβ€’
7 replies
dontworry

Custom avatar's animated hands not syncing to the network

I have a custom prefab linked as the Local Avatar Prefab on the Realtime Avatar Manager on Realtime + VR Player.

In the scene I have a script using AvatarCreated() to SetActive(true/false) different nested objects in the avatar prefab so player 1 vs player 2 have different hand objects under the Left Hand and Right Hand hierarchy.

Another script is on the Left Hand and Right Hand objects directly, which takes the controller's trigger value to blend an animation on the nested objects into clenching a fist.

I used _realtimeView.isOwnedLocallyInHierarchy so the trigger only affects the local avatar, and I applied GetComponent<RealtimeTransform>().RequestOwnership(); on every nested object, putting RealtimeTransform components on every level to network the rotating objects in this animation.

The clenching fist animates locally, but the other player does not see the animation. Any idea what I'm doing wrong here? Thanks
Was this page helpful?