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

# Unity 插件

## 概述

Convai 的 Unity SDK 为您提供将对话式 AI 集成到 Unity 项目中所需的全部工具。Convai 提供基于 NLP 的专业服务，帮助您为游戏和虚拟世界构建智能 NPC。我们的平台旨在与您的游戏开发工作流无缝集成，提升虚拟环境的互动性和深度。

## 主要功能

* **对话式 AI**：利用先进的 NLP 能力创建 NPC，使其能够以自然、引人入胜的方式理解并响应玩家输入。
* **智能 NPC**：构建具有动态对话和行为的角色，使其能够根据玩家动作和游戏世界进行适应。
* **轻松集成**：我们的 SDK 旨在与您的 Unity 项目快速、简单地集成，让您专注于打造引人入胜的游戏体验。
* **跨引擎支持**：除了 Unity 之外，Convai 还支持其他流行的游戏引擎，确保与您的开发需求具有广泛的兼容性和灵活性。

{% hint style="info" %}
[**从 Unity 资源商店下载 Convai Unity SDK**](https://assetstore.unity.com/packages/tools/behavior-ai/npc-ai-engine-dialog-actions-voice-and-lipsync-convai-235621)
{% endhint %}

这是该插件的核心版本。它包含一个示例场景，供任何人快速上手。此版本的插件仅包含基础的 Convai 脚本和角色下载器。

访问 [convai.com](https://convai.com/pipeline/dashboard) 以获取更多信息和支持。

## 快速设置教程

{% embed url="<https://youtu.be/anb9ityi0MQ?feature=shared>" %}
在您的 Unity 项目中添加 AI 角色的快速指南
{% endembed %}


---

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