How to sync child objects of a transform in multiplayer

Basically there is an object in my scene that needs other objects as children to work right, but when I tell the network view to track the parent object’s transform, it doesn’t track the children (just that they exist and are children of the parent object). I also need it do be so that any client can add an object as a child… and I just can’t figure it out. Thanks for reading, and hopefully answering if you can :slight_smile:

Apparently there’s a new component called NetworkTransformChild in 5.2 for this.

See http://docs.unity3d.com/ScriptReference/Networking.NetworkTransformChild.html

I’m not sure what your problem is, as if you add a networkVeiw to a parent it will send the transform of the parent over the network and move the parent at the other end and thus make the child follow it.

As for the client being able to add object as child, are you sure you are using Network.Instantiate?

Ya this is a weird problem. Just make sure your adding a “NetworkView” component to the parent and dragging the transform to it. That will make jerky movement but make sure that works before moving on. If it watches that correctly it will move your entire object including the children of it.