docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SyncListBool

    A list of booleans that will be synchronized from server to clients.

    Inheritance
    object
    SyncList<bool>
    SyncListBool
    Implements
    IList<bool>
    ICollection<bool>
    IEnumerable<bool>
    IEnumerable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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 class SyncListBool : SyncList<bool>, IList<bool>, ICollection<bool>, IEnumerable<bool>, IEnumerable

    Methods

    DeserializeItem(NetworkReader)

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

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

    Stream to read from.

    Returns
    Type Description
    bool

    New instance of the SyncList value type.

    Overrides
    SyncList<bool>.DeserializeItem(NetworkReader)

    ReadInstance(NetworkReader)

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

    ReadReference(NetworkReader, SyncListBool)

    An internal function used for serializing SyncList member variables.

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

    SerializeItem(NetworkWriter, bool)

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

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

    Stream to write to.

    bool item

    Item to write.

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

    WriteInstance(NetworkWriter, SyncListBool)

    Declaration
    public static void WriteInstance(NetworkWriter writer, SyncListBool items)
    Parameters
    Type Name Description
    NetworkWriter writer
    SyncListBool 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)