How to sync child objects

Options
I have an object in my scene 'object A'. Object A is a non PUN object, but to object A, object B which is a PUN object is attached to it. Object B is spawned using 'PhotonNetwork.Instantiate' and then it is set as a child of object A using the Unity 3D functions. My problem is if I instantiate object B without setting object A as it's parent Photon will track and synchronize object B amongst the various clients. If I attach object B to object A then PUN stops working. How do I fix this? Thank you.

Answers

  • Gage_IAG
    Options
    You can sync children by writing a simple SerializedView method that recursively iterates through a transform and sends/receives data accordingly. Be sure to apply some sort of smoothing such as Lerp as well in the receive area. Dont forget to observe that component either in the photon view.