Player Custom Properties throws an exception

Options
Hi,

I have implemented the code below, to create new player properties.
var customProperties = new ExitGames.Client.Photon.Hashtable() {{12, "twelve"}};
PhotonNetwork.LocalPlayer.SetCustomProperties(customProperties);

I get this error:

OpSetPropertiesOfActor() failed. actorProperties must not be null nor empty.
UnityEngine.Debug:LogError(Object)
Photon.Realtime.LoadBalancingClient:DebugReturn(DebugLevel, String) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:2304)


Any help please?

Comments