进入《Boss Room》
《Boss Room》是一个小型协作游戏示例项目(使用 Netcode for GameObjects 和 Unity Relay 构建),旨在帮助您了解多人游戏背后的概念和模式。

了解 Netcode for GameObjects
Netcode for GameObjects 是为 Unity 游戏引擎构建的网络库。我们将公开开发解决方案,以便为您提供可以定制和扩展的网络代码基础,满足您下一个多人游戏项目的需求。
在 Unity 编辑器中安装或浏览 GitHub 上的源代码。
Level up your game with Unity Gaming Services
Build your small-scale cooperative game with Netcode for GameObjects and connect your players with Relay and Lobby.
Plus, access more Unity solutions available to build, manage, and grow your game – battle-tested by the biggest names in gaming.


通过 Unity Gaming Services 提升您的游戏技能
使用 Netcode for GameObjects 构建您的小型合作游戏并使用 Relay 和 Lobby 连接您的玩家。
另外,您可以获取更多可用于构建、管理和改善游戏的 Unity 解决方案,其均经过知名游戏创作者的检验。
在社区中学习和创建
曾经有人说过,孤身前行很危险,所以加入我们吧!欢迎深入研究我们的文档,查看技术参考和内容,以开始联网。
另外,如有任何疑问,可通过 Multiplayer 论坛、Discord 和 GitHub 联系我们的团队,我们会积极参与。

Learn and create within a community
Someone once said that it’s dangerous to go alone – so we thought you should take this! Dive into our documentation for technical references and content to get started with networking.
Plus, our team is active on the Multiplayer forum, Discord, and GitHub if you have any questions.
常见问题解答
当前版本的 Netcode for GameObjects 支持主机/侦听服务器模型,其中一个客户端充当主机,并且连接其他客户端。
当前版本的 Netcode for GameObjects 支持除 WebGL 之外的大多数平台。我们基于 Netcode for GameObjects 构建的网络框架最终将支持所有主要的 Unity 支持平台。
很遗憾,我们无法确定新的网络框架何时可以用于生产。但是,这是 Unity 在 2021 年的首要任务之一,这些版本将反映出这一点。
Netcode for GameObjects 是 Unity 第一方游戏对象多玩家联网框架的关键构建块。我们的在案计划是将这个新框架作为核心引擎之外的单独的包。
Netcode for GameObjects will be available in versions 2020.3, 2021.3, 2022.1, and 2022.2
Netcode for Entities will be available in versions 2022.2.
Netcode for GameObjects and Transport have seamless integration with Unity Relay.
For Game Server Hosting (Multiplay), the process to get them setup together is currently manual – however, our team is currently working on making this DGS workflow optimal and seamless across all our solutions.
当然!SDK 和文档中都会有。我们很高兴能够与社区分享这一过程。我们还将提供其他不同形式的服务,例如提供 RFC 流程,用于讨论设计决策。
Netcode for GameObjects 支持专用游戏服务器模型。要用 Netcode for GameObjects 创建专用游戏服务器,您可以将项目构建为服务器版本,然后将该版本上传到托管服务的游戏服务器或您自己的服务器硬件。
我们的文档站点拥有丰富的学习资源和文章,可帮助您开始使用。如果您有任何其他问题,可在 Discord 或 Netcode for GameObjects 论坛上直接联系我们的团队。