How to sync position only one time, using Photon Networking

I want to do the following.
When a player joins the room, he should receive all the gameobjects' (with a photonview) locations.
This should happen only once when the player enters the room.
How could this be implemented?

Answers



  • public void OnJoinedRoom() {
    List photonviews= Object.FindObjectsOfType();
    List locations= new List();
    foreach( var photonview in photonviews)
    {
    locations.Add(photonview.transform.position);
    }

    }
Sign In or Register to comment.