I am just beginning with PUN (porting a project using UNET). Everything has worked great so far (well not far yet).
But for the life of me I can't figure out when I set Player custom property the OnPlayerPropertiesUpdate is not called.
I am setting the properties as follows:
Hashtable hash = new Hashtable(); hash["driver"] = driver; //driver is int value player.SetCustomProperties(hash);But on my other class (which inherits MonoBehaviourPunCallbacks) the method is not getting called:
public override void OnPlayerPropertiesUpdate(Player target, Hashtable changedProps) { Debug.Log("MPLobbyPlayer: OnPlayerPropertiesUpdate() " + changedProps.ToString()); if (target == photonView.Owner && changedProps.ContainsKey("driver")) { RefreshNameAndDriver(); } }Am I missing extra steps here? I can verify on the masterclient (where I set the custom properties) that the properties are actually getting set. Just the callback is not called. I've understood the OnPlayerPropertiesUpdate() should be automatically called even on the client that is calling SetCustomProperties(), right?