Room CustomProperties is not updating with values
Options
While creating a room, i am updating both the CustomRoomProperties and CustomRoomPropertiesForLobby
but when i am trying to get the list of rooms for other players
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 0Can some one help?
0
Best Answer
-
Check out tutibueno's solution in this thread
http://forum.photonengine.com/discussion/1457/getting-roominfo-customproperties-in-lobby
0
Answers
-
Check out tutibueno's solution in this thread
http://forum.photonengine.com/discussion/1457/getting-roominfo-customproperties-in-lobby
0