How to get data(value) from room?

Hello. I created room with custom properties. How can I get by Key value of custom properties later during the game?
I know about PhotonNetwork.room.CustomProperties but I don't understand how I should it use...

Comments

  • JohnTubeJohnTube mod
    edited June 17
    If you created a room with custom property with key "X" you can get it later like this:
    T customPropertyValue = (T) PhotonNetwork.room.CustomProperties["X"];
    Change key string "X" and cast type "T".
Sign In or Register to comment.