Struct NetPlayerChange

Namespace
Unity.Multiplayer.Core

What changed about a player (a roster's Changed event).

public readonly struct NetPlayerChange
Inherited Members

Constructors

NetPlayerChange(NetPlayer, NetPlayer)

A change from previous to player (the same seat).

public NetPlayerChange(NetPlayer previous, NetPlayer player)

Parameters

previous NetPlayer
player NetPlayer

Properties

ColorChanged

True when the colour changed.

public bool ColorChanged { get; }

Property Value

bool

ConnectionChanged

True when the player dropped (their seat is held) or came back.

public bool ConnectionChanged { get; }

Property Value

bool

NameChanged

True when the name changed.

public bool NameChanged { get; }

Property Value

bool

OnlyPingChanged

True when only the measured round-trip time changed.

public bool OnlyPingChanged { get; }

Property Value

bool

Player

The record now.

public NetPlayer Player { get; }

Property Value

NetPlayer

Previous

The record before.

public NetPlayer Previous { get; }

Property Value

NetPlayer

Methods

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.