Class SyncListStruct<T>
This class is used for lists of structs that are synchronized from the server to clients.
To use SyncListStruct, derive a new class with your struct as the generic parameter.
Inheritance
SyncListStruct<T>
Syntax
[Obsolete("The high level API classes are deprecated and will be removed in the future.")]
public class SyncListStruct<T> : SyncList<T>, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable where T : struct
Type Parameters
Properties
Count
Declaration
public ushort Count { get; }
Property Value
Methods
AddInternal(T)
Declaration
public void AddInternal(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
DeserializeItem(NetworkReader)
Declaration
protected override T DeserializeItem(NetworkReader reader)
Parameters
Returns
Overrides
UnityEngine.Networking.SyncList<T>.DeserializeItem(UnityEngine.Networking.NetworkReader)
GetItem(Int32)
Declaration
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
SerializeItem(NetworkWriter, T)
Declaration
protected override void SerializeItem(NetworkWriter writer, T item)
Parameters
Overrides
UnityEngine.Networking.SyncList<T>.SerializeItem(UnityEngine.Networking.NetworkWriter, T)