Realtime Objects on XR Origin doesn't sync
An object on my XR Origin player that I attached an Realtime View + Transform doesn't sync. But whatever I add to the VR Player prefab syncs just fine.
4 Replies
Hi @xulipa. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
It seems like you're having trouble synchronizing an object attached to your XR Origin player using Realtime View and Transform. Here are a few things you might want to check:
1. Ownership: Normcore uses a unique way of handling ownership. If you've requested ownership of both the transform and the view, it might cause issues. You only need to request ownership of the transform. If you want a RealtimeTransform to support ownership handoff, you need to ensure the view has no owner (source (https://normcore.io/documentation/realtime/common-questions#why-doesnt-my-realtimetransform-properly-transfer-ownership-on-collision)).
2. Parenting: Normcore does not synchronize parent relationships between objects. If the new parent gets destroyed, it will take the RealtimeView and its components with it, which can result in desyncs between your clients. It's generally recommended not to reparent a game object with a RealtimeView or RealtimeComponent on it (source (https://normcore.io/documentation/realtime/common-questions#can-i-reparent-a-game-object-with-a-realtimeview-or-realtimecomponent-on-it)).
3. RealtimeAvatar: If you're using a plugin like VRIK and your avatar setup uses a camera rig, you’ll need to wire it up to RealtimeAvatarManager’s Root, Head, and Hand transform inputs. This will ensure that your RealtimeAvatar instance matches the transforms of your camera rig instead of using the default Unity XR APIs (source (https://normcore.io/documentation/realtime/common-questions#im-using-a-vrik-plugin-for-ik-movement-on-avatars-when-i-teleport-or-move-my-camera-rig-the-rig-moves-but-my-avatar-doesnt-whats-going-on)).
4. RealtimeTransform Settings: Make sure that the settings for RealtimeTransform are correctly configured. For instance, you can choose whether to synchronize the position, rotation, and scale of the game object (source (https://normcore.io/documentation/realtime/realtimetransform)).
If you're still having trouble, you might want to consult the Normcore documentation (https://normcore.io/documentation/) for more detailed information.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
<@725231244169707600> kapa.ai is still learning and improving, please let us know how it did by reacting below
putting it on the avatar is the correct thing to do
Thanks for clarification!