Class SyncListBool | Multiplayer HLAPI | 1.0.8
docs.unity3d.com
    Show / Hide Table of Contents

    Class SyncListBool

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

    Inheritance
    Object
    SyncList<Boolean>
    SyncListBool
    Inherited Members
    SyncList<Boolean>.Count
    SyncList<Boolean>.IsReadOnly
    SyncList<Boolean>.Callback
    SyncList<Boolean>.InitializeBehaviour(NetworkBehaviour, Int32)
    SyncList<Boolean>.HandleMsg(NetworkReader)
    SyncList<Boolean>.Add(Boolean)
    SyncList<Boolean>.Clear()
    SyncList<Boolean>.Contains(Boolean)
    SyncList<Boolean>.CopyTo(Boolean[], Int32)
    SyncList<Boolean>.IndexOf(Boolean)
    SyncList<Boolean>.Insert(Int32, Boolean)
    SyncList<Boolean>.Remove(Boolean)
    SyncList<Boolean>.RemoveAt(Int32)
    SyncList<Boolean>.Dirty(Int32)
    SyncList<Boolean>.Item[Int32]
    SyncList<Boolean>.GetEnumerator()
    Namespace: UnityEngine.Networking
    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)

    Declaration
    protected override bool DeserializeItem(NetworkReader reader)
    Parameters
    Type Name Description
    NetworkReader reader
    Returns
    Type Description
    Boolean
    Overrides
    UnityEngine.Networking.SyncList<System.Boolean>.DeserializeItem(UnityEngine.Networking.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, Boolean)

    Declaration
    protected override void SerializeItem(NetworkWriter writer, bool item)
    Parameters
    Type Name Description
    NetworkWriter writer
    Boolean item
    Overrides
    UnityEngine.Networking.SyncList<System.Boolean>.SerializeItem(UnityEngine.Networking.NetworkWriter, System.Boolean)

    WriteInstance(NetworkWriter, SyncListBool)

    Declaration
    public static void WriteInstance(NetworkWriter writer, SyncListBool items)
    Parameters
    Type Name Description
    NetworkWriter writer
    SyncListBool items
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023