- Home /
Unity NetworkTransformChild - Syncing the Child of a Child
I'm making a multiplayer FPS and I added weapon switching. If you press 1, it will make you hold an assault rifle. If you press 2, it will make you hold a pistol. However, when in multiplayer, the client and the host only see when they switch weapons themselves. They don't see other people switching weapons. How can I sync this?
Currently the way the Player object is structured:
- Player
- Camera
- Assault Rifle
- Pistol
When the player selects the assault rifle, it disables the pistol GameObject, hiding it from view. The same goes for the pistol. When you select the pistol, it enables the pistol GameObject and disables the assault rifle GameObject, hiding it from view.
I currently have NetworkTransformChild's on the player. One for the camera, one for the assault rifle, and one for the pistol. Why aren't they synced? What am I doing wrong?