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

    Show / Hide Table of Contents

    Method RegisterServerDriver

    RegisterServerDriver(World, ref NetworkDriverStore, NetDebug, int)

    Register multiple NetworkDriver instances to the driverStore that uses different Unity.Networking.Transport.INetworkInterface:

      These are configured using internal defaults. See: GetNetworkSettings().
      Declaration
      public static void RegisterServerDriver(World world, ref NetworkDriverStore driverStore, NetDebug netDebug, int playerCount = 0)
      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.

      int playerCount

      Amount of players the server should allocate receive and send queue for. The estimation is that each player will receive 4 packets.

      RegisterServerDriver(World, ref NetworkDriverStore, NetDebug, NetworkSettings)

      Register a multiple NetworkDriver instances to hte driverStore:

        These drivers are configured using the NetworkSettings passed in.
        Declaration
        public static void RegisterServerDriver(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.

        Remarks

        Not available for WebGL builds. Always available in the Editor.

        RegisterServerDriver(World, ref NetworkDriverStore, NetDebug, ref RelayServerData, int)

        Register multiple NetworkDriver instances to the driverStore that uses different Unity.Networking.Transport.INetworkInterface:

          These are configured using internal defaults. See: GetNetworkSettings().
          Declaration
          public static void RegisterServerDriver(World world, ref NetworkDriverStore driverStore, NetDebug netDebug, ref RelayServerData relayData, int playerCount = 0)
          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.

          int playerCount

          Amount of players the server should allocate receive and send queue for. The estimation is that each player will receive 4 packets.

          Remarks

          Not available for WebGL builds. Always available in the Editor.

          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)