Class SyncListString
This is a list of strings that will be synchronized from the server to clients.
Inheritance
SyncListString
Syntax
[Obsolete("The high level API classes are deprecated and will be removed in the future.")]
public sealed class SyncListString : SyncList<string>, IList<string>, ICollection<string>, IEnumerable<string>, IEnumerable
Methods
DeserializeItem(NetworkReader)
Declaration
protected override string DeserializeItem(NetworkReader reader)
Parameters
Returns
Overrides
UnityEngine.Networking.SyncList<System.String>.DeserializeItem(UnityEngine.Networking.NetworkReader)
ReadInstance(NetworkReader)
Declaration
[Obsolete("ReadReference is now used instead")]
public static SyncListString ReadInstance(NetworkReader reader)
Parameters
Returns
ReadReference(NetworkReader, SyncListString)
An internal function used for serializing SyncList member variables.
Declaration
public static void ReadReference(NetworkReader reader, SyncListString syncList)
Parameters
SerializeItem(NetworkWriter, String)
Declaration
protected override void SerializeItem(NetworkWriter writer, string item)
Parameters
Overrides
UnityEngine.Networking.SyncList<System.String>.SerializeItem(UnityEngine.Networking.NetworkWriter, System.String)
WriteInstance(NetworkWriter, SyncListString)
Declaration
public static void WriteInstance(NetworkWriter writer, SyncListString items)
Parameters