Skip to main content

Unity.Netcode.NetworkListEvent-1

Struct containing event information about changes to a NetworkList.

Inherited Members#

System.ValueType.Equals(System.Object)

System.ValueType.GetHashCode()

System.ValueType.ToString()

System.Object.Equals(System.Object, System.Object)

System.Object.GetType()

System.Object.ReferenceEquals(System.Object, System.Object)

Syntax#
public struct NetworkListEvent<T>
Type Parameters#
NameDescription
TThe type for the list that the event is about

Fields#

Index#

the index changed, added or removed if available

Declaration#
public int Index
Field Value#
TypeDescription
System.Int32

PreviousValue#

The previous value when "Value" has changed, if available.

Declaration#
public T PreviousValue
Field Value#
TypeDescription
T

Type#

Enum representing the operation made to the list.

Declaration#
public NetworkListEvent<T>.EventType Type
Field Value#
TypeDescription
NetworkListEvent.EventType\<>

Value#

The value changed, added or removed if available.

Declaration#
public T Value
Field Value#
TypeDescription
T