Version: 2018.4
Setting up Unity Multiplayer
Integration using the HUD

Integrating the Multiplayer Service

There are three different methods you can use to start working with the Multiplayer Service in your project. These three methods give you a different level of control depending on your needs.

  • using NetworkManagerHUD. (simplest, requires no scripting)
  • using NetworkServer and NetworkClient. (high-level, simpler scripting)
  • using NetworkTransport directly. (low-Level, more complex scripting)

The first method, using NetworkManagerHUD offers the highest level of abstraction, meaning that the Service does most of the work for you. This is therefore the simplest method to use, and most suitable for those new to creating multiplayer games. It provides a simple graphical interface which you can use to perform the basic multiplayer tasks of creating, listing, joining and starting games (referred to as ‘matches’).

The second method, using NetworkServer and NetworkClient, uses our Networking High-Level API to do these same tasks. This method is more flexible; you can use the examples provided to integrate the basic multiplayer tasks into your games own UI.

The third method, using NetworkTransport directly, gives you maximum control, but is only usually necessary if you have unusual requirements which are not met by using our Networking High-Level API.

Setting up Unity Multiplayer
Integration using the HUD
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961