

OnWebRpcResponse (OperationResponse response)Ĭalled by PUN when the response to a WebRPC is available. OnCustomAuthenticationResponse (Dictionary data)Ĭalled when your Custom Authentication service responds with additional data. OnCustomAuthenticationFailed (string debugMessage)Ĭalled when the custom authentication failed. More.Ĭalled when the server sent the response to a FindFriends request and updated PhotonNetwork.Friends. Player and the changed properties are passed as object. OnPhotonPlayerPropertiesChanged (object playerAndUpdatedProps)Ĭalled when custom player-properties are changed. The propertiesThatChanged contains all that was set via Room.SetCustomProperties. OnPhotonCustomRoomPropertiesChanged ( Hashtable propertiesThatChanged)Ĭalled when a room's custom properties changed. More.īecause the concurrent user limit was (temporarily) reached, this client is rejected by the server and disconnecting. More.Ĭalled after the connection to the master is established and authenticated but only when toJoinLobby is false. The parameter provides ErrorCode and message. OnPhotonRandomJoinFailed (object codeAndMsg)Ĭalled when a JoinRandom() call failed. This PhotonPlayer is already removed from the playerlist at this time.

OnPhotonPlayerDisconnected ( PhotonPlayer otherPlayer)Ĭalled when a remote player left the room. This PhotonPlayer is already added to the playerlist at this time. OnPhotonPlayerConnected ( PhotonPlayer newPlayer)Ĭalled when a remote player entered the room. Called on all clients (including the Master Client). More.Ĭalled when entering a room (by creating or joining it).
#Changing ownership of a networkview object update#
More.Ĭalled for any update of the room-listing while in a lobby ( PhotonNetwork.insideLobby) on the Master Server or when a response is received for PhotonNetwork.GetCustomRoomList(). OnPhotonInstantiate ( PhotonMessageInfo info)Ĭalled on all scripts on a GameObject (and children) that have been Instantiated using PhotonNetwork.Instantiate. OnConnectionFail ( DisconnectCause cause)Ĭalled when something causes the connection to fail (after it was established), followed by a call to OnDisconnectedFromPhoton().


More.Ĭalled after disconnecting from the Photon server. OnFailedToConnectToPhoton ( DisconnectCause cause)Ĭalled if a connect call to the Photon server failed before the connection was established, followed by a call to OnDisconnectedFromPhoton(). The actual room-list updates will call OnReceivedRoomListUpdate(). More.Ĭalled on entering a lobby on the Master Server. More.Ĭalled when this client created a room and entered it. The parameter provides ErrorCode and message (as array). OnPhotonJoinRoomFailed (object codeAndMsg)Ĭalled when a JoinRoom() call failed. OnPhotonCreateRoomFailed (object codeAndMsg)Ĭalled when a CreateRoom() call failed. OnMasterClientSwitched ( PhotonPlayer newMasterClient)Ĭalled after switching to a new MasterClient when the current one leaves. More.Ĭalled when the local user/client left a room. OnJoinedLobby() or OnConnectedToMaster() are called when PUN is ready. Inherits Photon.MonoBehaviour, and IPunCallbacks.Ĭalled when the initial connection got established but before you can use the server. Override the events/methods you want to use. photonView and all callbacks/events that PUN can call.
