Custom Player Properties

Options
Hi, I'm a bit confused on how to use player properties. Say I want a "ready-up" type thing, how would I implement it so that all other players in the room can see whether you ready-up'd or not?

Comments

  • Hi,

    Call PhotonNetwork.player.SetCustomProperties(...) on one client and get properties from player.customProperties hashtable on others. Check UtilityScripts/PunTeams.cs scipt for call samples.
    To get notifications on properties change, handle OnPhotonCustomRoomPropertiesChanged message.