文档

​
​

Development

User Acquisition

Monetization

工业

Multiplayer Services SDK

All Services

Multiplayer Services SDK

此页面不支持所选语言。
Multiplayer
​
​
Multiplayer Services SDK
  • Overview
  • Get started
  • Use multiplayer sessions
    • Integrate Multiplayer sessions
    • Game server hosting support
  • Manage sessions
  • Connect players through a relay
  • Networking
  • Matchmaking
  • Monitor and debug sessions
  • Tutorials
  • Reference
  1. Multiplayer Services SDK

Use multiplayer sessions

Guides and information on how to implement multiplayer sessions in your game.
阅读时间1 分钟
最后更新于 8 天前

Use multiplayer sessions to create and manage connected players, support session ownership, and hosting scenarios.
Integrate Multiplayer sessions
Implement multiplayer functionality in your games using sessions, a unified system that manages player connections and interactions.
Initialize UGS and authenticate the player
Initialize Unity Gaming Services in your project and authenticate the player to prepare for multiplayer functionality.
Create a session
Configure session options and choose network connection types to add multiplayer support to your project.
Find and join a session
Implement ways to join multiplayer sessions by entering a join code, browsing available sessions, or reconnecting after a disconnection.
Match players
Find and join the most suitable multiplayer sessions for a given player using matchmaking.
Migrate session host
Learn about changing session ownership, including host election and data migration.
Leave a session
Learn how players can leave a session and what happens when they exit.
Get joined sessions
Retrieve a list of all sessions that the current player has joined.
Delete a session
Permanently delete a session to remove it from the system and disconnect all players.
Session configuration options
Learn about available session configuration options and their default values.
Game server hosting support
Integrate different hosting solutions using Cloud Code modules to manage servers.

Additional resources

  • Unity Gaming Services Multiplayer
  • Netcode for GameObjects
  • Netcode for Entities
  • 👥 Community: Join the conversation on Unity Discussions

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

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

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

  • 在本页上
    • Additional resources


报告此页面的问题