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 !
OnEvent: Event 253.
When tracking down my customproperty variable it changes from false to true after i see this in the logs.
Thanks !
0
Comments
-
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)
orvoid OnPhotonPlayerPropertiesChanged (object[] playerAndUpdatedProps)
0 -
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...doh0