Search Unity

Third Party Syncing the position of 2 different gameobject using photon

Discussion in 'Multiplayer' started by atsamy, Jul 28, 2019.

  1. atsamy

    atsamy

    Joined:
    Feb 28, 2013
    Posts:
    5
    So am working on a multiplayer race game and am trying to sync the main vehicle with a ghost vehicle, i dont want to instantiate the gameobject with photon because they are different game objects, I tried to use photonview with OnPhotonSerializeView but it didnt work out, is short how can i update a position of one gameobject with another every frame??
     
  2. atsamy

    atsamy

    Joined:
    Feb 28, 2013
    Posts:
    5
    So i figured out a solution, to create a game object with photonView and use photonnetwork.instantiate then assign both game objects to this object, then i t can read data from one and send it to the other.