Struct ConnectionEventData
Inherited Members
Namespace: Unity.Netcode
Assembly: Unity.Netcode.Runtime.dll
Syntax
public struct ConnectionEventData
Fields
ClientId
The client ID for the client that just connected For the ClientConnected and ClientDisconnected events on the client side, this will be LocalClientId. On the server side, this will be the ID of the client that just connected.
For the PeerConnected and PeerDisconnected events on the client side, this will be the client ID assigned by the server to the remote peer.
Declaration
public ulong ClientId
Field Value
Type | Description |
---|---|
ulong |
EventType
Declaration
public ConnectionEvent EventType
Field Value
Type | Description |
---|---|
ConnectionEvent |
PeerClientIds
This is only populated in ClientConnected on the client side, and contains the list of other peers who were present before you connected. In all other situations, this array will be uninitialized.
Declaration
public NativeArray<ulong> PeerClientIds
Field Value
Type | Description |
---|---|
NativeArray<ulong> |