Struct SessionStateChange
- Namespace
- Unity.Multiplayer.Core
One state change, raised by StateChanged.
public readonly struct SessionStateChange
- Inherited Members
Constructors
SessionStateChange(SessionState, SessionState, Disconnection)
Creates a change record.
public SessionStateChange(SessionState from, SessionState to, Disconnection disconnection)
Parameters
fromSessionStatetoSessionStatedisconnectionDisconnection
Properties
Disconnection
Why the session ended, when this change ends one; otherwise None.
public Disconnection Disconnection { get; }
Property Value
From
The state before.
public SessionState From { get; }
Property Value
To
The state after.
public SessionState To { get; }
Property Value
Methods
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.