RoyNexus
RoyNexus3w ago

Parent and child transforms scale sync

If I have a Parent transform with a RealtimeTransform and ownership of it, then this parent has a child transform, does changing the child's scale get's synced to remote players?
2 Replies
kapa.ai
kapa.ai3w ago
Hi @RoyNexus. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the knowledge sources, if you have a parent GameObject with a RealtimeTransform component and you change the scale of a child GameObject, the child's scale will not automatically be synchronized to remote players unless the child also has its own RealtimeTransform component. This is because RealtimeTransform only synchronizes the localPosition, localRotation, and localScale of the GameObject it's attached to. As explained in the documentation:
When operating in Transform mode, RealtimeTransform synchronizes the localPosition, localRotation, and localScale of a GameObject.
RealtimeTransform Documentation The documentation also mentions that:
If you have multiple nested Transforms, you need to synchronize all of them with RealtimeTransform.
Using RealtimeTransform So to properly synchronize both the parent and child transforms, you would need to add a RealtimeTransform component to the child GameObject as well. Then, since you already have ownership of the parent, the child's RealtimeTransform would also be owned by you (ownership cascades down from parent to child in the hierarchy). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai3w ago
<@362795742198235136> Kapa.ai is still learning and improving, please let me know how I did by reacting below.

Did you find this page helpful?