> 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-beta-overview/getting-started.md). Agents can also search and read this documentation through its [MCP server](https://docs.convai.com/api-docs/~gitbook/mcp).

# Unity 插件入门

安装、配置并通过快速对话测试验证 Convai Unity SDK。

## 简介

Convai Unity SDK 可将实时对话式 AI 引入 Unity 项目，非常适合用于 NPC 对话、语音交互和交互式角色体验。

本「入门指南」旨在引导你从一个全新的 Unity 项目开始，通过示例场景或自定义场景，成功完成「首次对话」。

{% embed url="<https://youtu.be/bxjGnOvNL4E>" %}
在 Unity 中创建具备实时口型同步和高品质面部动画的对话式 AI 虚拟形象
{% endembed %}

## 概述

根据你当前所处的步骤，参阅以下页面：

* **安装**
  * **UPM** ——更新和依赖项管理最简单
  * **Unity Asset Store** ——基于 Asset Store 的分发流程
* **配置**
  * **配置 API 密钥**
  * **导入并运行示例场景**
  * **设置自定义场景**
  * **添加聊天 UI（对话记录 UI）**
  * **为角色添加口型同步**

## 接下来

如果这是你第一次在 Unity 中安装 Convai：

1. 从 **通过 UPM 安装**
2. 继续 **配置 API 密钥**
3. 通过 **示例场景** 或 **设置自定义场景**
4. 还可以添加 **聊天 UI**
5. 还可以添加 **口型同步** 以实现实时面部动画

## 总结

现在，你已清楚了解如何安装并验证 Convai Unity SDK。请从 **安装**开始，然后前往 **设置**最后进行一次简短的对话测试。

{% hint style="info" %}
**需要帮助？** 如有疑问，请访问 [**Convai 开发者论坛**](https://forum.convai.com/).
{% endhint %}


---

# 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-beta-overview/getting-started.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.
