Photon Fusion 2.0.0

Classes | Public Attributes | List of all members
NetworkEvents Class Reference

Companion component for NetworkRunner. Exposes INetworkRunnerCallbacks as UnityEvents, which can be wired up to other components in the inspector. More...

Inherits Behaviour, and INetworkRunnerCallbacks.

Classes

class  ConnectFailedEvent
 UnityEvent for ConnectFailed. More...
 
class  ConnectRequestEvent
 UnityEvent for ConnectRequest. More...
 
class  CustomAuthenticationResponse
 UnityEvent for Custom Authentication. More...
 
class  DisconnectFromServerEvent
 UnityEvent for DisconnectFromServer. More...
 
class  HostMigrationEvent
 UnityEvent for HostMigration. More...
 
class  InputEvent
 UnityEvent for NetworkInput. More...
 
class  InputPlayerEvent
 UnityEvent for NetworkInput with PlayerRef. More...
 
class  ObjectEvent
 UnityEvent for NetworkObject. More...
 
class  ObjectPlayerEvent
 UnityEvent for NetworkObject with PlayerRef. More...
 
class  PlayerEvent
 UnityEvent for PlayerRef. More...
 
class  ReliableDataEvent
 UnityEvent for Reliable Data. More...
 
class  ReliableProgressEvent
 UnityEvent for Reliable Data Progress. More...
 
class  RunnerEvent
 UnityEvent for NetworkRunner. More...
 
class  SessionListUpdateEvent
 UnityEvent for SessionInfo List. More...
 
class  ShutdownEvent
 UnityEvent for Shutdown. More...
 
class  SimulationMessageEvent
 UnityEvent for SimulationMessage. More...
 

Public Attributes

RunnerEvent OnConnectedToServer
 
ConnectFailedEvent OnConnectFailed
 
ConnectRequestEvent OnConnectRequest
 
CustomAuthenticationResponse OnCustomAuthenticationResponse
 
DisconnectFromServerEvent OnDisconnectedFromServer
 
HostMigrationEvent OnHostMigration
 
InputEvent OnInput
 
InputPlayerEvent OnInputMissing
 
ObjectPlayerEvent OnObjectEnterAOI
 
ObjectPlayerEvent OnObjectExitAOI
 
ReliableDataEvent OnReliableData
 
ReliableProgressEvent OnReliableProgress
 
RunnerEvent OnSceneLoadDone
 
RunnerEvent OnSceneLoadStart
 
SessionListUpdateEvent OnSessionListUpdate
 
ShutdownEvent OnShutdown
 
SimulationMessageEvent OnSimulationMessage
 
PlayerEvent PlayerJoined
 
PlayerEvent PlayerLeft
 

Additional Inherited Members

- Public Member Functions inherited from Behaviour
AddBehaviour< T > ()
 Wrapper for Unity's GameObject.AddComponent()
 
GetBehaviour< T > ()
 Wrapper for Unity's GameObject.GetComponentInChildren()
 
bool TryGetBehaviour< T > (out T behaviour)
 Wrapper for Unity's GameObject.TryGetComponent()
 
void OnConnectedToServer (NetworkRunner runner)
 Callback when NetworkRunner successfully connects to a server or host.
 
void OnConnectFailed (NetworkRunner runner, NetAddress remoteAddress, NetConnectFailedReason reason)
 Callback when NetworkRunner fails to connect to a server or host.
 
void OnConnectRequest (NetworkRunner runner, NetworkRunnerCallbackArgs.ConnectRequest request, byte[] token)
 Callback when NetworkRunner receives a Connection Request from a Remote Client.
 
void OnCustomAuthenticationResponse (NetworkRunner runner, Dictionary< string, object > data)
 Callback is invoked when the Authentication procedure returns a response from the Authentication Server.
 
void OnDisconnectedFromServer (NetworkRunner runner, NetDisconnectReason reason)
 Callback when NetworkRunner disconnects from a server or host.
 
void OnHostMigration (NetworkRunner runner, HostMigrationToken hostMigrationToken)
 Callback is invoked when the Host Migration process has started.
 
void OnInput (NetworkRunner runner, NetworkInput input)
 Callback from NetworkRunner that polls for user inputs. The NetworkInput that is supplied expects:
 
void OnInputMissing (NetworkRunner runner, PlayerRef player, NetworkInput input)
 Callback from NetworkRunner when an input is missing.
 
void OnObjectEnterAOI (NetworkRunner runner, NetworkObject obj, PlayerRef player)
 Callback from a NetworkRunner when a new NetworkObject has entered the Area of Interest.
 
void OnObjectExitAOI (NetworkRunner runner, NetworkObject obj, PlayerRef player)
 Callback from a NetworkRunner when a new NetworkObject has exit the Area of Interest.
 
void OnPlayerJoined (NetworkRunner runner, PlayerRef player)
 Callback from a NetworkRunner when a new player has joined.
 
void OnPlayerLeft (NetworkRunner runner, PlayerRef player)
 Callback from a NetworkRunner when a player has disconnected.
 
void OnReliableDataProgress (NetworkRunner runner, PlayerRef player, ReliableKey key, float progress)
 Callback is invoked when a Reliable Data Stream is being received, reporting its progress.
 
void OnReliableDataReceived (NetworkRunner runner, PlayerRef player, ReliableKey key, ArraySegment< byte > data)
 Callback is invoked when a Reliable Data Stream has been received.
 
void OnSceneLoadDone (NetworkRunner runner)
 Callback is invoked when a Scene Load has finished.
 
void OnSceneLoadStart (NetworkRunner runner)
 Callback is invoked when a Scene Load has started.
 
void OnSessionListUpdated (NetworkRunner runner, List< SessionInfo > sessionList)
 This callback is invoked when a new List of Sessions is received from Photon Cloud.
 
void OnShutdown (NetworkRunner runner, ShutdownReason shutdownReason)
 Called when the runner is shutdown.
 
void OnUserSimulationMessage (NetworkRunner runner, SimulationMessagePtr message)
 This callback is invoked when a manually dispatched simulation message is received from a remote peer.
 
- Static Public Member Functions inherited from Behaviour
static void DestroyBehaviour (Behaviour behaviour)
 Wrapper for Unity's GameObject.Destroy()
 

Detailed Description

Companion component for NetworkRunner. Exposes INetworkRunnerCallbacks as UnityEvents, which can be wired up to other components in the inspector.