While creating a room, i am updating both the CustomRoomProperties and CustomRoomPropertiesForLobby
RoomOptions roomOptions = new RoomOptions() { };
roomOptions.MaxPlayers = (byte) maxPlayers;
string[] customRoomProps = new string[2];
customRoomProps[0] = tierNo.ToString();//int variable
customRoomProps[1] = area.ToString();//enum variable
roomOptions.CustomRoomPropertiesForLobby = customRoomProps;
roomOptions.CustomRoomProperties = new ExitGames.Client.Photon.Hashtable(2) {{"TierNumber", tierNo}, {"GameArea", area}};
PhotonNetwork.CreateRoom(null, roomOptions, TypedLobby.Default);
but when i am trying to get the list of rooms for other players
RoomInfo[] roomInfos = PhotonNetwork.GetRoomList();
RoomInfo tempRoomInfo = roomInfos[0];
print(tempRoomInfo.CustomProperties.Count);// this is giving 0
Can some one help?
RoomOptions roomOptions = new RoomOptions() { };
roomOptions.MaxPlayers = (byte) maxPlayers;
string[] customRoomProps = new string[2];
customRoomProps[0] = tierNo.ToString();//int variable
customRoomProps[1] = area.ToString();//enum variable
roomOptions.CustomRoomPropertiesForLobby = customRoomProps;
roomOptions.CustomRoomProperties = new ExitGames.Client.Photon.Hashtable(2) {{"TierNumber", tierNo}, {"GameArea", area}};
PhotonNetwork.CreateRoom(null, roomOptions, TypedLobby.Default);
but when i am trying to get the list of rooms for other players
RoomInfo[] roomInfos = PhotonNetwork.GetRoomList();
RoomInfo tempRoomInfo = roomInfos[0];
print(tempRoomInfo.CustomProperties.Count);// this is giving 0
Can some one help?