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

from SessionState
to SessionState
disconnection Disconnection

Properties

Disconnection

Why the session ended, when this change ends one; otherwise None.

public Disconnection Disconnection { get; }

Property Value

Disconnection

From

The state before.

public SessionState From { get; }

Property Value

SessionState

To

The state after.

public SessionState To { get; }

Property Value

SessionState

Methods

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.