> For the complete documentation index, see [llms.txt](https://docs.convai.com/api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/import-and-setup.md).

# 导入与设置（夜间版）

按照这些步骤导入并配置 Unity SDK。

{% hint style="info" %}
[**通过此链接下载 Unity Package 夜间版本。**](https://github.com/Conv-AI/Convai-Unity-Nightly-SDK/releases/latest)\
该软件包包含示例场景，可帮助你快速入门。
{% endhint %}

{% hint style="info" %}
[如果要为 WebGL 构建，请下载该插件的 WebGL 版本。](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/building-for-supported-platforms/building-for-webgl.md)
{% endhint %}

{% hint style="info" %}
此文件结构对应于从文档下载的插件夜间版本。
{% endhint %}

1. 如果尚未下载 SDK，请先下载 [此处](https://drive.google.com/file/d/1dslrRcI6e02LvL-coupUoTFRlBDLjvMA).
2. 启动 Unity Hub。
3. 确认项目使用 Unity 2022.3.0f1 LTS 或更高版本（请参阅文档中的“先决条件”部分）。
4. 打开项目。
5. 选择 **Assets > Import Package > Custom Package。**<br>

   <figure><img src="https://2402152281-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2FSORsSifE0bb2okyr0NqZ%2Fimage.png?alt=media&amp;token=0aaeed66-840c-4df0-91f0-0dcda7d71302" alt="" width="375"><figcaption></figcaption></figure>
6. 在文件资源管理器中，选择 Convai Unity 软件包。\
   文件名类似于 `ConvaiforUnity_vX.Y.Z.unitypackage`。X、Y 和 Z 是表示插件版本信息的数字。
7. 点击 **导入。**
8. 开始导入时，系统会提示是否使用新版 Unity Input System。点击 **是**.<br>

   <figure><img src="https://2402152281-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2FsJVttJS9HWaBQ1oSZe0Z%2Fimage.png?alt=media&amp;token=dea9e291-e26b-4550-b1db-2a18d5741a52" alt="" width="295"><figcaption></figcaption></figure>
9. 项目将自动重启。重启后，你需要以相同方式再次导入软件包。
10. 如果使用的是早于 2022.3.0f1 的 Unity 版本，请禁用程序集版本验证（请参阅此故障排除页面： [禁用程序集验证](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/troubleshooting-guide/enabled-assembly-validation.md))
11. 确认没有编译器错误。

{% hint style="info" %}
如果遇到任何错误，请访问我们的 [故障排查指南](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/troubleshooting-guide.md) 页面，了解如何解决常见问题。
{% endhint %}

## 软件包内容

导入后，Convai 文件夹默认会出现在项目中。其结构应类似于下图。

{% hint style="info" %}
此文件结构对应于从文档下载的插件核心版本。
{% endhint %}

<figure><img src="https://2402152281-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2FZ4ioPav9aA9VgtiSf35O%2Fimage.png?alt=media&amp;token=68df6d09-2db5-47df-818c-70bcdd4d0e86" alt=""><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/import-and-setup.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
