Question about room joins and OnPhotonPlayerPropertiesChanged()
Options
Hi,
In my code, which utilizes PUN, the Master client creates and joins a room. Sometime, thereafter, a second player joins the room. Both players are listening for OnPhotonPlayerPropertiesChanged() events.
I've noticed that when the second player joins, it receives a call to OnPhotonPlayerPropertiesChanged() with the empty custom player properties from the first player. Is this expected behavior?
I currently check for calls to OnPhotonPlayerPropertiesChanged() that are from players with zero custom properties and ignore them (player.CustomProperties.Count == 0). I just want to ensure that I'm not misinterpreting the situation. I guess I can check the PUN code to verify, but I wanted to ask first in case someone here knows the answer already. Tried searching, but didn't find anything solid.
Thanks in advance!
In my code, which utilizes PUN, the Master client creates and joins a room. Sometime, thereafter, a second player joins the room. Both players are listening for OnPhotonPlayerPropertiesChanged() events.
I've noticed that when the second player joins, it receives a call to OnPhotonPlayerPropertiesChanged() with the empty custom player properties from the first player. Is this expected behavior?
I currently check for calls to OnPhotonPlayerPropertiesChanged() that are from players with zero custom properties and ignore them (player.CustomProperties.Count == 0). I just want to ensure that I'm not misinterpreting the situation. I guess I can check the PUN code to verify, but I wanted to ask first in case someone here knows the answer already. Tried searching, but didn't find anything solid.
Thanks in advance!
0