OnEvent: Event 253.

Options
What does this do?

OnEvent: Event 253.

When tracking down my customproperty variable it changes from false to true after i see this in the logs.

Thanks !

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited April 2017
    Options
    Hi @mercutio604,

    Thank you for choosing Photon!

    Event code 253 is for PropertiesChanged event.
    You get this event when another remote player has changed a room or player property (with the broadcast option "on" which is the default behaviour).
    You can implement PUN callbacks:

    void OnPhotonCustomRoomPropertiesChanged (Hashtable propertiesThatChanged)

    or

    void OnPhotonPlayerPropertiesChanged (object[] playerAndUpdatedProps)
  • mercutio604
    Options
    Thanks, I figured out why it was changing because of that explanation.

    I was sending an rpc to all to change customproperties forgetting it will sync by itself...doh