产品

使用 Netcode 构建您的玩家多人联网基础套件

了解我们全新的第一方 NetCode 解决方案,并亲手操作需要开始探索的库、教程和示例。

The 2023 Unity Gaming Report is here. Get data to make informed decisions about your game. Get the report

进入《Boss Room》

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

Snowy racecar scene

了解 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.

UGS key art

两个面板之间的电流

通过 Unity Gaming Services 提升您的游戏技能

使用 Netcode for GameObjects 构建您的小型合作游戏并使用 Relay 和 Lobby 连接您的玩家。

另外,您可以获取更多可用于构建、管理和改善游戏的 Unity 解决方案,其均经过知名游戏创作者的检验。

在社区中学习和创建

曾经有人说过,孤身前行很危险,所以加入我们吧!欢迎深入研究我们的文档,查看技术参考和内容,以开始联网。 

另外,如有任何疑问,可通过 Multiplayer 论坛、DiscordGitHub 联系我们的团队,我们会积极参与。

Learn and create within a community

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 forumDiscord, and GitHub if you have any questions.

了解多玩家联网的更多信息

进行多人游戏开发的 8 个要素

在本指南中,您将了解多人游戏开发的八大因素,在创建和运营下一个多人游戏作品时您需要将其纳入考虑范围。

进入《Boss Room》

通过我们的小型协作 RPG《Boss Room》,了解 Unity 的 Netcode for GameObjects、Relay 以及多人游戏的基本模式。

网络小型合作游戏

了解即将推出的独立游戏《Breakwaters》,选择其模型,以便学习如何将小型合作游戏联网。

Netcode 的真伪辨别

“NetCode”一词可能会受到玩家的诟病 – 它通常被归咎为导致延迟和糟糕的多人游戏体验。从这个博客中的文章中辨别真伪,消除常见的 NetCode 误解。

开始构建您的下一个多人游戏

安装 Netcode for GameObjects 以率先开始制作下一个使用 Unity 的玩家多人联网游戏项目。

常见问题解答

Netcode for GameObjects 是否适用于 P2P?

当前版本的 Netcode for GameObjects 支持主机/侦听服务器模型,其中一个客户端充当主机,并且连接其他客户端。

Netcode for GameObjects 将支持哪些平台?

当前版本的 Netcode for GameObjects 支持除 WebGL 之外的大多数平台。我们基于 Netcode for GameObjects 构建的网络框架最终将支持所有主要的 Unity 支持平台。

Netcode for GameObjects 何时可以用于生产?

很遗憾,我们无法确定新的网络框架何时可以用于生产。但是,这是 Unity 在 2021 年的首要任务之一,这些版本将反映出这一点。

Netcode for GameObjects 是否将集成到 Unity 引擎中?

Netcode for GameObjects 是 Unity 第一方游戏对象多玩家联网框架的关键构建块。我们的在案计划是将这个新框架作为核心引擎之外的单独的包。

Which Editor versions are Unity’s multiplayer solutions available for?

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.

How are Unity’s multiplayer solutions integrated with Unity Gaming Services?

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 支持专用游戏服务器模型。要用 Netcode for GameObjects 创建专用游戏服务器,您可以将项目构建为服务器版本,然后将该版本上传到托管服务的游戏服务器或您自己的服务器硬件。

在哪里可以找到 Netcode for GameObjects 教程和其他学习材料?

我们的文档站点拥有丰富的学习资源和文章,可帮助您开始使用。如果您有任何其他问题,可在 DiscordNetcode for GameObjects 论坛上直接联系我们的团队。

我们使用 Cookie 来确保为您提供网站的最佳体验。有关更多信息,请访问我们的 Cookie 政策页面

明白了