> For the complete documentation index, see [llms.txt](https://docs.edgegap.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.edgegap.com/zh/unity/developer-tools.md).

# 开发者工具

我们为您打造这些工具，秉持一个简单的信条：“成功团队的关键是快速迭代和频繁测试”。如果您发现任何改进机会，请在我们的 [社区 Discord](https://discord.gg/NgCnkHbsGp). 我们希望您会享受到流畅的体验。🚀

{% hint style="info" %}
[查找真实世界示例](/zh/docs/sample-projects/unity-netcodes.md) 您可以将其用作项目起点，并进一步修改。
{% endhint %}

## ⚡ 专用服务器快速启动插件

直接从您的 Unity 编辑器中构建并将您的专用游戏服务器启动到云端！

* [Unity 专用服务器插件 - 交钥匙解决方案、源代码和完整发行说明。](https://github.com/edgegap/edgegap-unity-plugin)

{% hint style="success" %}
此插件 100% 免费提供，受免费层条款和条件约束。
{% endhint %}

自 2021.3+ 起的所有 Unity3D 长期支持（LTS）版本均受官方支持。

此插件包含旨在帮助您完成以下任务的功能：

* 为 Linux 构建并容器化您的专用服务器，
* 在本地测试您服务器的 Docker 镜像，
* 将您的服务器上传并部署到 Edgegap 上。

{% hint style="info" %}
此插件不会修改任何游戏行为，它只是 Edgegap 任务的一个便捷开发工具。该插件不包含在您的构建中，因为它仅在服务器构建准备期间使用。
{% endhint %}

#### 安装

{% hint style="success" %}
参见 [Unity](/zh/unity.md) 以开始使用并查看插件使用的详细说明。
{% endhint %}

<details>

<summary>故障排除和常见问题</summary>

Unity 错误： `[包管理器窗口] 添加包时出错：https://github.com/edgegap/edgegap-unity-plugin.git`

* 要通过 git URL 添加我们的插件，您[#installation](#installation "mention")).

***

Unity 错误： `缺少 Linux 构建支持`

* 参见 [#usage-requirements](#usage-requirements "mention"), 您很可能缺少 Linux 构建支持模块，您可以通过 Unity Hub 安装它们。请确保选择与您的项目相同的 Unity 版本。

</details>

{% hint style="info" %}
**针对插件开发者** - 如果您希望在用户的编辑器中检测此插件是否存在，可以使用编译指令来实现 `#if EDGEGAP_PLUGIN_SERVERS {your code} #endif` .
{% endhint %}

## ⭐ 软件开发工具包

{% hint style="info" %}
**Unity SDK 的最新版本是 `3.3.0`**。本文档中的所有示例都是最新的。
{% endhint %}

<details>

<summary>故障排除和常见问题</summary>

Unity： `[包管理器窗口] 添加包时出错：https://github.com/edgegap/edgegap-unity-sdk.git`

* 要通过 git URL 添加我们的插件，您需要安装 git 客户端。

***

Visual Studio： `找不到类型或命名空间名称` ，用于 Edgegap 命名空间。

1. 在 Unity 编辑器中，导航到 **编辑 / 首选项 / 外部工具 / 生成 .csproj 文件**.
2. 请确保您已启用 **Git 包**.
3. 单击 **重新生成项目文件**.

</details>

## 📫 分布式中继传输库

为您的网络代码库找到一个自定义 Transport，以便在点对点游戏中利用分布式中继。

[查看文档](/zh/learn/distributed-relay/relay-transport-samples.md):

* 下载 Edgegap Relay 示例：
  * [Mirror 示例](https://github.com/edgegap/unity-mirror-relay-sample),
  * [FishNet 示例](https://github.com/edgegap/unity-fishnet-relay-sample),
  * [Unity NGO 示例](https://github.com/edgegap/unity-ngo-relay-sample).
* [Edgegap Relay Transport 库 - 支持的网络代码的源代码和发行说明。](https://github.com/edgegap/distributed-relay-examples)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.edgegap.com/zh/unity/developer-tools.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
