文档

​
​

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
  • Networking
  • Matchmaking
    • Get started with matchmaking
      • Matchmaking ticket flow
      • Authentication
      • Matchmaking rate limits
      • Queues and pools
      • Matchmaker hosting providers
    • Manage and configure matchmaking
    • Matchmaker troubleshooting
    • Integrations with other UGS services
    • Deploy Matchmaker configurations
  • Monitor and debug sessions
  • Tutorials
  • Reference
  1. Multiplayer Services SDK

Matchmaker hosting providers

Integrate your preferred game server hosting provider using Cloud Code modules.
阅读时间2 分钟
最后更新于 16 天前

Matchmaker uses queues and pools to customize matchmaking in your game. When creating or editing pools, you can specify the following Match Hosting types:
  • Client: Select this option for peer-to-peer, client-hosting matches.
  • Cloud Code: Matchmaker uses Cloud Code modules to allocate game servers and coordinate matchmaking results.

Hosting with Cloud Code modules

You can integrate Matchmaker with most game server hosting providers using Cloud Code modules to allocate game servers and coordinate matchmaking results.
Configure game hosting in Matchmaker with Cloud Code modules in the .mmq Matchmaker queue file.
In the Unity Dashboard, or the .mmq file's Inspector window, set the following mandatory fields:
  • Module Name
  • Allocate Function Name
  • Poll Function Name
If editing the .mmq Matchmaker queue file directly, these fields are
moduleName
,
allocateFunctionName
,
pollFunctionName
, respectively.
While most third-party hosting providers are compatible, Unity provides example Cloud Code modules to integrate the following alternative hosting providers:
  • PlayFab
  • Gamelift
  • Agones
  • Rocket Science Multiplay
注意
The previous list isn't exhaustive. The approach mentioned here supports most hosting providers. If your provider isn't on this list, use the previous examples as a starting point to get started with your preferred hosting provider.
These modules demonstrate how to allocate game servers using the respective hosting provider's API, and how to integrate with Unity Matchmaker to pass the necessary matchmaking results to the allocated server. For more detailed instructions about how to deploy and use these modules in your project, refer to the README.md file of the example repository.
To set up one of the previous modules:
  1. Read the README.md file of the example repository.
  2. Clone the GitHub repository.
  3. Install and set up the UGS CLI for your project.
  4. Follow the instructions of the relevant
    CONFIGURATION.md
    file.
  5. Run
    ugs deploy modules/<provider_name>
    .

Additional resources

  • Unity Cloud Code documentation

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

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

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

  • 在本页上
    • Hosting with Cloud Code modules

    • Additional resources


报告此页面的问题