[Room Joining Problem] Random Player Can't Join A Hashable Room
Options
why is this not letting the second player join the room that someone else created
ExitGames.Client.Photon.Hashtable expectedCustomRoomProperties = new ExitGames.Client.Photon.Hashtable() { { "1 Vs 1", 1 } }; PhotonNetwork.JoinRandomRoom(expectedCustomRoomProperties, 2);
RoomOptions roomOptions = new RoomOptions(); roomOptions.CustomRoomProperties = new ExitGames.Client.Photon.Hashtable() { { "1 Vs 1", 1 } }; roomOptions.MaxPlayers = 2; PhotonNetwork.CreateRoom(null, roomOptions);
0
Comments
-
Hi @GalacticFalcon,
Thank you for choosing Photon!If you are doing random matchmaking using room properties as a filter make sure to set the keys of those properties to be visible from the lobby when creating the room.roomOptions.CustomRoomPropertiesForLobby = new[] { "1 Vs 1" };
1 -
@JohnTube Thank You That Worked0