How to get data(value) from room?

Options
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

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited June 2017
    Options
    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".