- Home /
Unity Network Transform Not Syncing for Clients [UNet]
I have gameobject which on key press/collision is parented/unparented with the player who collides with it. The parenting is how I move the gameobject so that it moves along with the player. I have the player movement synced correctly but when the parented object moves this movement is not replicated to the connected clients. The gameobject has the necessary Network Transform and Identity components attached and local player authority is enabled. I parent the gameobject to the local player by check ifLocalPlayer().
How do i go about notifying clients that the gameobject is now parented to the player and for it to update its version if the gameobjects position so the movement is replicated and synced.
Thanks in advance.
Answer by hexagonius · Feb 07, 2018 at 05:38 PM
send a command to the server from the client that's about to do the childing. then just send an RPC from the server to child the objects.
remember this pattern since it's the one most important chain of calls to get things across the network.
Your answer
![](https://koobas.hobune.stream/wayback/20220612152145im_/https://answers.unity.com/themes/thub/images/avi.jpg)