Player is auto joining room after leaving room using PhotonNetwork.LeaveRoom ().

Options
Player is auto joining room after leaving room using PhotonNetwork.LeaveRoom (). Is this by default? If yes, how to undo this. I want it to join only when I create/join room. Also, I am working in one scene. Is this the cause of this?

Comments

  • Dknighter
    Options
    Hey, not sure if this is what you are looking for or not but PUN automatically enables auto join lobby. On your Photon settings just untick the "auto join lobby" option if that is what you are looking for.
  • jolly17ify
    Options
    "Auto join lobby" option is already unticked. :smile:
  • Your network manager is probably auto-joining a room when you leave if you have the script setup in such a way to automatically find and join a room when they join a lobby.

    Could you share some source code with us?
  • vadim
    Options
    Probably same logic as after connecting to the master server triggered in your code after leaving a room. Add some flag to mark that you want to stay connected to the master.