{!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} Method RegisterClientDriver | Netcode for Entities | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RegisterClientDriver

    RegisterClientDriver(World, ref NetworkDriverStore, NetDebug)

    Register a NetworkDriver instance in the driverStore that uses either:

      These are configured using internal defaults. See: GetNetworkSettings().
      Declaration
      public static void RegisterClientDriver(World world, ref NetworkDriverStore driverStore, NetDebug netDebug)
      Parameters
      Type Name Description
      World world

      Used for determining whether we are running in a client or server world.

      NetworkDriverStore driverStore

      Store for NetworkDriver.

      NetDebug netDebug

      For handling logging.

      RegisterClientDriver(World, ref NetworkDriverStore, NetDebug, NetworkSettings)

      Register a NetworkDriver instance in the driverStore that uses either:

        These are configured using the NetworkSettings passed in.
        Declaration
        public static void RegisterClientDriver(World world, ref NetworkDriverStore driverStore, NetDebug netDebug, NetworkSettings settings)
        Parameters
        Type Name Description
        World world

        Used for determining whether we are running in a client or server world.

        NetworkDriverStore driverStore

        Store for NetworkDriver.

        NetDebug netDebug

        For handling logging.

        NetworkSettings settings

        A list of the parameters that describe the network configuration.

        RegisterClientDriver(World, ref NetworkDriverStore, NetDebug, ref RelayServerData)

        Register a NetworkDriver instance in and stores it in driverStore:
        - a single IPCNetworkInterface NetworkDriver if the both client and server worlds are present in the same process.
        - a single UDPNetworkInterface driver in all other cases.
        These are configured using the default settings. See GetNetworkSettings().

        Declaration
        public static void RegisterClientDriver(World world, ref NetworkDriverStore driverStore, NetDebug netDebug, ref RelayServerData relayData)
        Parameters
        Type Name Description
        World world

        Used for determining whether we are running in a client or server world.

        NetworkDriverStore driverStore

        Store for NetworkDriver.

        NetDebug netDebug

        For handling logging.

        RelayServerData relayData

        Server information to make a connection using a relay server.

        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)