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

# 功能地图

根据用例，查找适合你任何开发目标的 Convai Unity SDK 功能、模块、指南或参考页面。

如果你知道想要实现的目标，但不确定该由哪个 SDK 功能、模块或指南介绍，请使用此表。

### 入门

| 我想要……                 | 功能 / 工具  | 文档                                                                                                                                             |
| --------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| 将 SDK 安装到我的项目中        | 安装       | [安装](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/getting-started/installation.md)                                |
| 配置我的 Convai API 密钥    | API 密钥设置 | [配置 API 密钥](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/getting-started/configure-api-key.md)                    |
| 将我的第一个对话角色添加到场景中      | 场景设置     | [构建自定义场景](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/getting-started/build-a-custom-scene.md)                   |
| 运行一个可正常工作的示例，无需从头开始构建 | 示例场景     | [导入并运行示例场景](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/getting-started/import-and-run-sample-scenes.md)         |
| 在一个会话中运行包含多个角色的可用示例   | 多角色示例    | [多角色示例](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/features/multi-character-sessions/multi-character-sample.md) |
| 了解场景中各个组件的作用          | 组件参考     | [场景组件参考](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/getting-started/scene-components.md)                        |
| 选择按键通话或免提输入           | 输入模式     | [配置对话输入模式](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/getting-started/configure-conversation-input-mode.md)     |
| 配置角色音频输出              | 音频设置     | [配置角色音频](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/getting-started/configure-character-audio.md)               |
| 配置麦克风设备和平台权限          | 音频设置     | [配置麦克风](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/getting-started/configure-microphone.md)                     |
| 添加聊天或字幕文本显示           | 文本显示界面   | [添加聊天界面](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/getting-started/add-chat-ui.md)                             |
| 为我的角色添加实时唇形同步         | 唇形同步     | [添加唇形同步](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/getting-started/add-lip-sync.md)                            |
| 发布前验证我的场景是否已正确设置      | 场景验证器    | [验证设置](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/getting-started/validate-your-setup.md)                       |

### 身份验证

| 我想要……                           | 功能            | 文档                                                                                                                                        |
| ------------------------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| 比较 API Key 和 Auth Token 身份验证模式  | 身份验证          | [身份验证](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/authentication.md)                                       |
| 了解 `ConvaiManager` 如何解析凭据       | 身份验证概念        | [身份验证的工作原理](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/authentication/how-authentication-works.md)         |
| 在 API Key 和 Auth Token 模式之间切换项目 | 身份验证模式设置      | [配置 Auth Token 模式](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/authentication/configure-auth-token-mode.md) |
| 使用短时效 Auth Token 连接房间会话         | Auth Token 连接 | [使用 Auth Token 连接](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/authentication/connect-with-auth-token.md)   |
| 使用我自己的 Auth Token 生成逻辑          | 自定义令牌提供程序     | [自定义令牌提供程序](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/authentication/custom-token-provider.md)            |
| 发布玩家版本，且不暴露我的账户 API 密钥          | 安全构建          | [发布安全构建](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/authentication/ship-a-secure-build.md)                 |
| 从 C# 调用身份验证 API                 | 脚本编写参考        | [身份验证脚本编写参考](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/authentication/scripting-reference.md)             |

### 功能

| 我想要……                      | 功能     | 文档                                                                                                                       |
| -------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------ |
| 让我的角色执行场景内命令（触发动画、开门、移动物体） | 操作     | [操作](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/features/character-actions.md)            |
| 将运行时状态或事件注入角色的知识中          | 动态上下文  | [动态上下文](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/features/dynamic-context.md)           |
| 让角色自动读取有关场景对象的信息           | 场景元数据  | [场景元数据](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/features/scene-metadata.md)            |
| 根据 AI 响应展现角色的面部情绪          | 情绪     | [情绪](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/embodiment/emotion.md)                    |
| 让角色在不同会话之间记住玩家             | 长期记忆   | [长期记忆](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/features/long-term-memory.md)           |
| 构建由对话触发的分支剧情章节             | 叙事设计   | [叙事设计](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/features/narrative-design.md)           |
| 通过摄像头或网络摄像头赋予角色视觉能力        | 视觉     | [视觉](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/features/vision.md)                       |
| 判断玩家正在与哪个角色交谈              | 对话对象定位 | [对话对象定位](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/features/conversation-targeting.md)   |
| 判断玩家当前是否可以交谈，并据此控制 UI      | 对话可用性  | [对话可用性](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/features/conversation-availability.md) |

### 角色呈现

| 我想要……                 | 模块   | 文档                                                                                                                   |
| --------------------- | ---- | -------------------------------------------------------------------------------------------------------------------- |
| 让我的角色注视玩家、物体或场景中的其他位置 | 注视   | [注视](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/embodiment/gaze.md)                   |
| 让角色行为与对话阶段同步          | 对话流程 | [对话流程](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/embodiment/conversation-flow.md)    |
| 让多个角色共用一套行为设置         | 预设   | [角色呈现预设](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/embodiment/embodiment-presets.md) |
| 决定说话时面部情绪与口型同步各自的影响程度 | 面部构成 | [面部构成](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/embodiment/facial-composition.md)   |
| 通过代码驱动待机、说话、移动和手势动画   | 身体动画 | [身体动画](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/embodiment/body-animation.md)       |
| 控制对话中的非语言行为——姿势、呼吸和倾听 | 肢体语言 | [肢体语言](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/embodiment/body-language.md)        |

### UI 和呈现

| 我想要……                   | 组件     | 文档                                                                                                                                                         |
| ----------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 在我的 UI 中显示实时对话记录        | 文本显示界面 | [文本显示界面](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/ui-and-presentation/transcript-ui.md)                                   |
| 在聊天和字幕显示模式之间切换          | 呈现模式   | [聊天和字幕模式](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/ui-and-presentation/transcript-ui/chat-and-subtitle-modes.md)          |
| 通过代码查询转录历史记录或响应转录内容变更   | 转录历史记录 | [转录历史记录与查询](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/ui-and-presentation/transcript-ui/transcript-history-and-queries.md) |
| 显示游戏内通知弹窗               | 通知系统   | [通知系统](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/ui-and-presentation/notification-system.md)                               |
| 添加运行时设置面板（麦克风、转录、通知、输入） | 设置面板   | [设置面板](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/ui-and-presentation/settings-panel.md)                                    |
| 通过代码读取或应用运行时设置          | 运行时设置  | [运行时设置 API](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/ui-and-presentation/settings-panel/runtime-settings-api.md)          |
| 自定义 UI 组件的外观和布局         | UI 自定义 | [自定义 UI 组件](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/ui-and-presentation/customizing-ui-components.md)                    |

### 核心概念

| 我想要……                    | 概念     | 文档                                                                                                                                         |
| ------------------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------ |
| 全面了解系统架构                 | 架构     | [Convai Unity SDK 架构](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/overview/convai-unity-sdk-architecture.md) |
| 了解会话状态、重新连接和持久化          | 会话生命周期 | [会话生命周期](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/core-concepts/session-lifecycle.md)                     |
| 比较免提和按键通话的轮流对话方式         | 轮流对话模式 | [轮流对话模式](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/core-concepts/turn-taking-modes.md)                     |
| 通过 C# 或 Inspector 订阅对话事件 | 事件系统   | [事件系统](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/core-concepts/event-system.md)                            |

### 脚本编写参考

| 我想要……                                        | API       | 文档                                                                                                                                      |
| -------------------------------------------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| 订阅会话已连接、已断开连接和错误事件                           | 会话事件      | [会话事件](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/scripting-reference/session-events.md)                 |
| 订阅转录、情绪和轮次事件                                 | 角色事件      | [角色事件](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/scripting-reference/character-events.md)               |
| 在运行时读取和清除转录历史记录                              | 转录 API    | [转录 API](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/scripting-reference/transcript-api.md)               |
| 使用 `ConvaiSDK` 和 `ConvaiAudio` 静态门面          | 对话门面      | [ConvaiManager API](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/scripting-reference/convaimanager-api.md) |
| 了解 `IConvaiOperation<T>` 和异步模式               | 异步模式      | [异步模式](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/scripting-reference/async-patterns.md)                 |
| 使用 `ConvaiCharacter` 和 `ConvaiPlayer` API 概览 | 角色与玩家 API | [角色与玩家 API](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/scripting-reference/character-and-player-api.md)  |
| 了解 `IConvaiOperation<T>` 和流式结果类型             | 操作与流类型    | [操作与流类型](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/scripting-reference/operation-and-stream-types.md)   |

### 兼容性与要求

| 我想要……                  | 要求            | 文档                                                                                                                                                               |
| ---------------------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 检查 Unity 版本、渲染管线和软件包要求 | 兼容性概览         | [兼容性与要求](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/compatibility-and-requirements.md)                                            |
| 确认支持的 Unity 版本和渲染管线    | Unity 与渲染管线支持 | [Unity 版本与渲染管线](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/compatibility-and-requirements/unity-versions-and-render-pipelines.md) |
| 确认 SDK 所需的域名、端口和防火墙规则  | 网络要求          | [网络与 API 要求](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/compatibility-and-requirements/network-and-api-requirements.md)           |

### 故障排除

| 我想要……                        | 工具            | 文档                                                                                                   |
| ---------------------------- | ------------- | ---------------------------------------------------------------------------------------------------- |
| 查找角色无法正常工作的原因，并查看每项问题对应的解决方法 | Convai 故障排除工具 | [故障排除](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/troubleshooting.md) |

### 平台指南

| 我想要……                       | 平台              | 文档                                                                                                                                            |
| --------------------------- | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| 通过 WebGL 发布到浏览器             | WebGL           | [WebGL](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/platform-guides/webgl.md)                                   |
| 发布到 Android 或 iOS           | 移动设备            | [移动设备 — iOS 和 Android](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/platform-guides/ios-and-android.md)          |
| 发布到 Windows、macOS 或 Linux   | 桌面设备            | [Windows、macOS 和 Linux](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/platform-guides/windows-macos-and-linux.md) |
| 使用透视视觉功能发布到 Meta Quest      | Meta Quest / XR | [Meta Quest 与 XR](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/platform-guides/xr-headsets.md)                   |
| 将 Meta Quest 透视摄像头画面流式传输给角色 | Meta Quest / XR | [Meta Quest 视觉设置](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/platform-guides/meta-quest-vision.md)             |

### 高级主题

| 我想要……                 | 主题      | 文档                                                                                                                                                      |
| --------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 替换 API 凭据提供程序         | 自定义提供程序 | [自定义凭据提供程序](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/advanced-topics/custom-providers/custom-credential-provider.md)   |
| 替换终端用户身份提供程序          | 自定义提供程序 | [自定义身份提供程序](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/advanced-topics/custom-providers/custom-identity-provider.md)     |
| 替换会话持久化提供程序           | 自定义提供程序 | [自定义持久化提供程序](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/advanced-topics/custom-providers/custom-persistence-provider.md) |
| 测量延迟并解读会话指标           | 性能      | [性能与优化](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/advanced-topics/performance-and-optimization.md)                      |
| 通过自定义模块扩展 SDK，或替换内部服务 | 扩展点     | [扩展 SDK](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/advanced-topics/extending-the-sdk.md)                                |

### 后续步骤

如果尚未设置 SDK，请先从安装开始。

{% content-ref url="/pages/5ea68df21c8a54f95779af92056a9ab831531be5" %}
[快速开始](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/getting-started.md)
{% endcontent-ref %}


---

# 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/convai-unity-sdk/overview/feature-map.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.
