How to edit current room's options isOpen after loading scene?

Hello,
I am making a MOBA game.
Everything seems to work well until I recently discover that other players cannot join a room with the given name
I made many debugs and discovered that all the rooms after loading scene had been already close, invisible while the total players < maxplayer number.
It means that masterclient have to open and make the current room visible so that other players can join this room.
How to edit the roomoptions.isOpen = true?

Comments

  • When a client is in the room, it can set Room.IsOpen.

    The server may close your room, if it feels the room is being flooded with properties and events for the event cache.

    Do you make use of that a lot?

    PUN 2 has a Realtime API that gets an error message for this case but we'll also release this as .Net / Unity SDK on our page soon.
  • Tobias wrote: »
    When a client is in the room, it can set Room.IsOpen.

    The server may close your room, if it feels the room is being flooded with properties and events for the event cache.

    Do you make use of that a lot?

    PUN 2 has a Realtime API that gets an error message for this case but we'll also release this as .Net / Unity SDK on our page soon.

    thanks for your help. I had already found it.
    I debug and discovered that, whenever a new player join a room, the room will be closed and invisible
    How to make it always open and visible instead of manually set Room.IsOpen ?

  • Don't set it at all. Open and visible is the default.
  • Tobias wrote: »
    Don't set it at all. Open and visible is the default.

    So strange, the room closes automatically after loadscene. Whenever a new player join the current scene, the room will set to closed
  • Add a Debug.Log to the Room.IsOpen property. When it's being set, you see the callstack and can find out what is triggering this.