文档

​
​

Development

User Acquisition

Monetization

工业

Multiplayer Services SDK

All Services

Multiplayer Services SDK

此页面不支持所选语言。
Multiplayer
​
​
Multiplayer Services SDK
  • Overview
  • Get started
  • Use multiplayer sessions
  • Manage sessions
  • Connect players through a relay
    • Relay servers
    • Players
    • Relay integrations
    • Fair usage
    • Limitations
  • Networking
  • Matchmaking
  • Monitor and debug sessions
  • Tutorials
  • Reference
  1. Multiplayer Services SDK

Players

Learn the roles and responsibilities of host and joining players in Relay sessions.
阅读时间1 分钟
最后更新于 2 个月前

A player is an end-user who is using a game client and wants to play in a session. Because players can only communicate with other players within the same session, there are no globally unique player identifiers.
There are two types of players:
  • The host player
  • The joining players

The host player

Host players are players who create a session and then generate a join code to share with other players. There's only one host player per session. A host player receives its connection data after making an allocation request.

Joining players

Joining players are players who receive the join code from the host player and then use the join code to join the game match. Joining players receive their own connection data, and the host's connection data, after making a join request using the join code. These connection data are used to request a connection to the host through the Relay server.

Maximum connections

The maximum number of players that can join and connect to the host in a session depends on the maximum number of connections configured by the host when they make the allocation request.
Additional players can join the Relay server and connect to the host, as long as the number of connected players remains under the maximum allowed connections. Lobby and Relay both allow for a maximum player value of 150.

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。

  • 在本页上
    • The host player

    • Joining players

    • Maximum connections


报告此页面的问题