Set custom Properties of a room

Hallo. Merry christmas to all :)
I want to set a room propertie with the code:
void Awake()
            Hashtable setValue = new Hashtable();
            setValue.Add("val", turn);
But unfortunately the error occurs: " PhotonNetwork does not contain a definition for ´room´ "

Thanks for any help guys.

Best Answer


  • It seems youre doing this on AWAKE. Is this script being fired before youve entered a room/created a room?
  • Yes I use PUN2. Thank you it works!
  • Hensi
    edited October 13

    If anyone still got this problem, this worked for me:

            ExitGames.Client.Photon.Hashtable setValue = new ExitGames.Client.Photon.Hashtable();
            setValue.Add("value", 1);