How to transfer player correctly from one session to other, located at different scene?

Options

Hi. I'm using Photon + Unity.

The building has a hall with corridors and a bunch of different rooms. The hall and rooms are located on different unity scenes. According to the original idea, when the player interacts with the door, he is transferred to the corresponding scene with a separate game session.

Example. There is a conference room. Interacting with the door (from hall scene/session) opens the conference creation/entry interface. When created, the player is transferred to the desired scene and creates a separate session. When entering, it also sends to this scene, but launching into an existing session. Between themselves, these sessions are not connected in any way, as well as with sessions in other rooms.

The question is how exactly to transfer the player from the "hall" scene/session to, for example, the "conference" scene/session.

Answers

  • Hi,

    A good approach would be to shutdown the current NetworkRunner and start a new one on the desired session with the desired scene.

    -----

    Isaac Augusto

    Photon Fusion Team