> 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).

# 导入与设置（夜间版）

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

{% hint style="info" %}
[如果你想为 WebGL 构建，请下载该插件的 WebGL 版本。](/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="/files/8aba6ab0254ee2ad2be9ef60e91c1895b7ce0f57" alt="" width="375"><figcaption></figcaption></figure>
6. 在文件资源管理器中，选择 Convai Unity 包。\
   文件名类似于 `ConvaiforUnity_vX.Y.Z.unitypackage`。X、Y 和 Z 是包含插件版本信息的数字。
7. 单击 **导入。**
8. 当导入开始时，会出现一个使用新的 Unity 输入系统的提示。按下 **是**.<br>

   <figure><img src="/files/fb2b1f9c2dafd325f12830c303c8b355e4bf62a4" alt="" width="295"><figcaption></figcaption></figure>
9. 项目将自动重启。项目重启后，你需要以相同方式导入该包。
10. 如果你使用的是 2022.3.0f1 之前的 Unity 版本，请禁用程序集版本验证（请使用此故障排除页面： [禁用程序集验证](/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/troubleshooting-guide/enabled-assembly-validation.md))
11. 请确认没有编译错误。

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

## 包内容

导入后，默认情况下，Convai 文件夹会出现在你的项目中。它应该类似于这样。

{% hint style="info" %}
该文件结构属于从文档中下载的插件 Core 版本。
{% endhint %}

<figure><img src="/files/7272d5f6c94207ebd78b3b6ddad66e347c0de533" 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 dynamically by asking a question.

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

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

The question should be specific, self-contained, and written in natural language.
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.
