docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SyncListString

    This is a list of strings that will be synchronized from the server to clients.

    Inheritance
    object
    SyncList<string>
    SyncListString
    Implements
    IList<string>
    ICollection<string>
    IEnumerable<string>
    IEnumerable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Networking
    Assembly: com.unity.multiplayer-hlapi.Runtime.dll
    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)

    This method is used when deserializing SyncList items from a stream.

    Declaration
    protected override string DeserializeItem(NetworkReader reader)
    Parameters
    Type Name Description
    NetworkReader reader

    Stream to read from.

    Returns
    Type Description
    string

    New instance of the SyncList value type.

    Overrides
    SyncList<string>.DeserializeItem(NetworkReader)

    ReadInstance(NetworkReader)

    Declaration
    [Obsolete("ReadReference is now used instead")]
    public static SyncListString ReadInstance(NetworkReader reader)
    Parameters
    Type Name Description
    NetworkReader reader
    Returns
    Type Description
    SyncListString

    ReadReference(NetworkReader, SyncListString)

    An internal function used for serializing SyncList member variables.

    Declaration
    public static void ReadReference(NetworkReader reader, SyncListString syncList)
    Parameters
    Type Name Description
    NetworkReader reader
    SyncListString syncList

    SerializeItem(NetworkWriter, string)

    This is used to write a value object from a SyncList to a stream.

    Declaration
    protected override void SerializeItem(NetworkWriter writer, string item)
    Parameters
    Type Name Description
    NetworkWriter writer

    Stream to write to.

    string item

    Item to write.

    Overrides
    SyncList<string>.SerializeItem(NetworkWriter, string)

    WriteInstance(NetworkWriter, SyncListString)

    Declaration
    public static void WriteInstance(NetworkWriter writer, SyncListString items)
    Parameters
    Type Name Description
    NetworkWriter writer
    SyncListString items

    Implements

    IList<T>
    ICollection<T>
    IEnumerable<T>
    IEnumerable
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)