> 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 插件

集成先进的对话式 AI，为你的游戏创建智能、可交互的 NPC。

## 概述

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

## 主要功能

* **对话式 AI**：借助先进的 NLP 能力，创建能够理解玩家输入并以自然、引人入胜的方式作出回应的 NPC。
* **智能 NPC**：打造具有动态对话和行为的角色，使其能够根据玩家的行动和游戏世界作出调整。
* **轻松集成**：我们的 SDK 专为快速、简单地集成到 Unity 项目而设计，让您专注于打造引人入胜的游戏体验。
* **跨引擎支持**：除了 Unity，Convai 还支持其他热门游戏引擎，确保广泛的兼容性，并满足您开发所需的灵活性。

{% hint style="info" %}
[**从 Unity Asset Store 下载 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>" %}
快速指南：将 AI 角色添加到 Unity 项目
{% 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 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.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.
