OnRoomPropertiesUpdate not being called?

Using "PhotonNetwork.CurrentRoom.SetCustomProperties" I'm not getting this callback on a MonoBehaviourPunCallbacks class. Either locally or on clients. Any ideas as to why?

Comments

  • Hi @sah1234,

    can you confirm, that your function declaration looks like this: public override void OnRoomPropertiesUpdate(Hashtable propertiesThatChanged)?

    If you use the OnEnable and OnDisable function in your class, make sure to call the base class' function. These functions add and remove the callback targets properly. If you want to, you can also do this on your own by using PhotonNetwork.AddCallbackTarget(this); and PhotonNetwork.RemoveCallbackTarget(this);.