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
Properties
ColorChanged
True when the colour changed.
public bool ColorChanged { get; }
Property Value
ConnectionChanged
True when the player dropped (their seat is held) or came back.
public bool ConnectionChanged { get; }
Property Value
NameChanged
True when the name changed.
public bool NameChanged { get; }
Property Value
OnlyPingChanged
True when only the measured round-trip time changed.
public bool OnlyPingChanged { get; }
Property Value
Player
The record now.
public NetPlayer Player { get; }
Property Value
Previous
The record before.
public NetPlayer Previous { 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.