Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

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.