How to use "SetPropertiesListedInLobby" correctly?
Options
Pretty much what the title says. I tried setting some in OnJoinedRoom using Photonnetwork.room.SetPropertiesListedInLobby, and then printing them in "OnReceivedRoomListUpdate" using:
RoomInfo[] rooms = PhotonNetwork.GetRoomList();
print(rooms[0].customProperties[]);
Thanks for the help!
RoomInfo[] rooms = PhotonNetwork.GetRoomList();
print(rooms[0].customProperties[]);
Thanks for the help!
0
Comments
-
I found it! I have to set the props I need in RoomOptions customRoomPropertiesForLobby when I create the room.
Then it is accessible in the way I mentioned above. This should probably be mentioned above the SetPropertiesListedInLobby function in Room.cs
Hope this helps!1