Photon SetCustomProperties help.

I get the following error in the final line of code: No appropriate version of ‘Room.SetCustomProperties’ for the argument list ‘(System.Collections.Hashtable)’ was found.

function OnCreatedRoom()
{
var setRoomProperties : Hashtable = new Hashtable();
setRoomProperties.Add("client1", PhotonPlayer);
setRoomProperties.Add("client2", PhotonPlayer);
setRoomProperties.Add("client3", PhotonPlayer);
setRoomProperties.Add("client4", PhotonPlayer);

PhotonNetwork.room.SetCustomProperties(setRoomProperties);
}

The SetCustomProperties method requires a ExitGames.Client.Photon.Hashtable. Your code must define that it’s using those Hashtables, instead if System.Collections.Hashtable.

Add this to the beginning of your CS scripts:
using Hashtable = ExitGames.Client.Photon.Hashtable;