{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Struct NetworkDriverStore | Netcode for Entities | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct NetworkDriverStore

    Store and manage an array of NetworkDriver. The capacity is fixed to Capacity. The driver registration should start by calling BeginDriverRegistration() and terminate with EndDriverRegistration(). The store also provide some accessor and utlilty methods.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.NetCode
    Assembly: solution.dll
    Syntax
    public struct NetworkDriverStore

    Fields

    Name Description
    Capacity

    The fixed capacity of the driver container.

    FirstDriverId

    The first assigned uniqued identifier to each driver.

    Properties

    Name Description
    DriversCount

    The number of registed drivers. Must be always less then the total driver Capacity.

    FirstDriver

    The first driver id present in the store. Can be used to iterate over all registered drivers in a for loop.

    IsAnyUsingSimulator

    Return true if the driver store contains a driver that has a simulator pipeline.

    LastDriver

    The last driver id present in the store. Can be used to iterate over all registered drivers in a for loop.

    Methods

    Name Description
    Disconnect(NetworkStreamConnection)

    Utility method to disconnect the NetworkStreamConnection connection.

    Dispose()

    Dispose all the registered drivers instances and their allocated resources.

    ForEachDriver(DriverVisitor)

    Invoke the delegate on all registered drivers.

    GetConnectionState(NetworkStreamConnection)

    Return the state of the NetworkStreamConnection connection.

    GetDriverInstance(int)

    Return the NetworkDriverStore.NetworkDriverInstance instance with the given driverId.

    GetDriverType(int)

    Return the transport type used by the registered driver.

    GetNetworkDriver(int)

    Return the NetworkDriver with the given driver id.

    RegisterDriver(TransportType, in NetworkDriverInstance)

    Add a new driver to the store. Throw exception if all drivers slot are already occupied or the driver is not created/valid

    ScheduleFlushSendAllDrivers(JobHandle)

    Invoke ScheduleFlushSend(JobHandle) on all registered drivers in the store

    In This Article
    Back to top
    Copyright © 2023 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)