Access Private Room
Options
Hello,
When I create a room, I would like to set the room to private by using the flag "isVisible = false" and that the other players can join it with the room name.
When I try to join it using the command PhotonNetwork. JoinRoom (roomName), it can not find the private room. Is there another way to access it ?
Otherwise, I saw that we could set private room with prefix "private_".
Thank you !
When I create a room, I would like to set the room to private by using the flag "isVisible = false" and that the other players can join it with the room name.
When I try to join it using the command PhotonNetwork. JoinRoom (roomName), it can not find the private room. Is there another way to access it ?
Otherwise, I saw that we could set private room with prefix "private_".
Thank you !
0
Comments
-
You should be able to join the private room. We are doing this.2
-
Hi @ahaupa,
Thank you for choosing Photon!
As @Spektre mentioned clients can join private rooms by name.
Go through our "Matchmaking Checklist" to check if clients can see each other.1 -
I have still one more question !
I want to invite people joining my room by using PhotonNetwork.FindFriends(string[] list).
However I can't get PhotonNetwork.Friends, PhotonNetwork does not have a definition of Friends ...
Do you know if I am missing an assembly reference or did it change with Pun 2 ?
Thanks0 -
Hi @ahaupa,
Read the "Migration Notes" carefully.PhotonNetwork.Friends is gone. You get friends list from IMatchmakingCallbacks.OnFriendListUpdate(List friendList) callback. You can optionally cache it, update it and clear it when needed.1