Enum SessionState
- Namespace
- Unity.Multiplayer.Core
Where a session is in its life.
public enum SessionState
Fields
Connected = 5Client: approved and in the session.
Connecting = 4Client: connecting to the server and awaiting approval.
Disconnected = 6Client: out of the session; LastDisconnect says why.
Idle = 0Nothing running. The initial state, and where a Host or Server returns after stopping.
Running = 2Host or Server: accepting players and ticking.
Starting = 1Host or Server: the transport is binding and the server is coming up.
Stopping = 3Host or Server: shutting down; players are being dropped.
Remarks
A Host or Server goes Idle → Starting → Running → Stopping → Idle.
A Client goes Idle → Connecting → Connected → Disconnected, and can start again from Disconnected.