Check if a room still exists
Options
Tadeu
✭
Hi guys,
I am trying to check if a room still exists after a disconnect. After all players joined the room I set the PhotonNetwork.room.visible to false, so it is no listed on PhotonNetwork.GetRoomList in OnReceivedRoomListUpdate method...
I think I can use roomOptions.customRoomProperties to make it invisible in my room list UI, but is there a simpler way to do it?
Best Regards
I am trying to check if a room still exists after a disconnect. After all players joined the room I set the PhotonNetwork.room.visible to false, so it is no listed on PhotonNetwork.GetRoomList in OnReceivedRoomListUpdate method...
I think I can use roomOptions.customRoomProperties to make it invisible in my room list UI, but is there a simpler way to do it?
Best Regards
0
Comments
-
Hi,
If you want to see room in lobby, it should be visible.
You may set 'open' room property to false instead of 'visible' to make sure that no one can join the room. Then filter rooms by 'open' property in UI.1 -
Nice idea, thank for the replay.0