> 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/troubleshooting-guide.md).

# 故障排查指南

排查 Convai Unity 插件的常见问题。获取解决方案，实现无缝 AI 集成。

## 常见问题（FAQ）

### 问：我看不到 Convai 菜单。

答：请检查控制台中是否有错误。Unity 必须能够编译所有脚本，才能显示自定义编辑器菜单选项。解决控制台中的所有错误即可修复此问题。

### 问：我的控制台中有很多错误。

答：主要有两个问题可能导致控制台出现源自 Convai Unity 插件的错误。你可以使用下面的链接快速修复这些问题。

1. [禁用程序集验证](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/troubleshooting-guide/enabled-assembly-validation.md)
2. [缺少 Newtonsoft Json](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/troubleshooting-guide/missing-newtonsoft-json.md)

### 问：我正在和角色交谈，但看不到用户转录文本，而且角色似乎无法连贯地回应我说的话。

答：这可能表示麦克风存在问题。请确保麦克风已正确连接。还需要确保应用有权访问麦克风。

[麦克风权限问题](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/troubleshooting-guide/microphone-permission-issues.md)

### 问：角色的动画看起来很奇怪。

答：我们使用的动画 Avatar 可能与角色网格不兼容。解决此问题即可修复异常。

[默认动画不兼容](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/troubleshooting-guide/default-animations-incompatibility.md)

### 问：移动端转录界面中出现了两个设置面板按钮。

答：如果使用 Unity 2021，可能会出现意外的预制件变体问题。这是因为 Unity 移动端转录界面是主转录界面预制件的变体。Unity 2022 更改了预制件系统，因此在 Unity 2022 中可以正常运行。如果使用 Unity 2021，可能会遇到预制件问题。删除多余的设置面板按钮即可解决此问题。

### 问：口型同步效果很弱，或者看不出来。

**答：** 我们使用的动画可能会修改面部动画。编辑动画并移除面部动画，应该就能解决与口型同步相关的问题。

[动画具有面部 BlendShape](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/troubleshooting-guide/animations-have-facial-blendshapes.md)

**答：** 此外，要让脚本自行操控颌骨，Avatar 也不能映射到颌骨。

[Avatar 中的下颌骨未固定](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/troubleshooting-guide/jaw-bone-in-avatar-is-not-free.md)

### **问：我在 macOS 上的 Unity Editor 中使用 `grpc_csharp_ext.bundle` DLL 时遇到安全权限问题**

**答：** macOS 严格的安全措施可能会阻止某些外部未签名 DLL。要解决此问题，可以在“安全性与隐私”设置中手动允许该 DLL，通过终端修改 Gatekeeper 设置，确保 DLL 的文件权限正确，在 Unity 中检查其设置，并在 Unity 的 Player Settings 中更新 Mac 配置。

[macOS 权限问题](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/troubleshooting-guide/macos-permission-issues.md)

### **问：为 macOS 构建 Unity 项目（Intel64 和 Apple Silicon 构建）后，我无法与角色交谈，尤其是在 Intel Mac 上。**

**答：** 问题根源在于 Unity 用于网络通信的 `grpc_csharp_ext.bundle` 。此 DLL 有针对 Intel 和 Apple Silicon 架构分别优化的版本。尝试创建同时支持两种架构的通用构建时，会出现兼容性问题，尤其是在 Intel Mac 上。目前最佳解决方案是使用针对每种架构的独立构建设置。

[为 macOS 通用应用构建](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/building-for-supported-platforms/microphone-permission-issue-on-intel-macs-with-universal-builds.md)

## 错误索引

请参阅此表，查找最常见错误的解决方法。

<table><thead><tr><th width="160">名称</th><th width="232">错误示例</th><th width="211">错误原因</th><th></th><th data-hidden>错误日志示例</th><th data-hidden>解决方案链接</th><th data-hidden>原因</th></tr></thead><tbody><tr><td>已启用程序集验证</td><td><pre data-overflow="wrap"><code>由于错误，程序集 'Assets/Convai/Plugins/Grpc.Core.Api/lib/net45/Grpc.Core.Api.dll' 将不会被加载： 
Grpc.Core.Api 引用了强名称 System.Memory 程序集，版本为 4.0.1.1；项目中找到的版本为 4.0.1.2。
</code></pre></td><td>Unity 默认会检查所含程序集的版本号是否完全一致。对于我们的插件，无需进行此检查，因为我们使用的是最新版本的库。</td><td><a data-mention href="https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/troubleshooting-guide/enabled-assembly-validation.md">禁用程序集验证</a></td><td>由于错误，程序集 'Assets/Convai/Plugins/Grpc.Core.Api/lib/net45/Grpc.Core.Api.dll' 将不会被加载：Grpc.Core.Api 引用了强名称 System.Memory 程序集，版本为 4.0.1.1；项目中找到的版本为 4.0.1.2。</td><td><a data-mention href="https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/troubleshooting-guide/enabled-assembly-validation.md">禁用程序集验证</a></td><td>Unity 默认</td></tr><tr><td>缺少 Newtonsoft Json</td><td><pre data-overflow="wrap"><code>Assets\Convai\Plugins\GLTFUtility\Scripts\Spec\GLTFPrimitive.cs(8,4): error CS0246: The type or namespace name 'JsonPropertyAttribute' could not be found (are you missing a using directive or an assembly reference?)
</code></pre></td><td>我们的插件依赖 Newtonsoft Json。它通常已包含在 Unity 中，但有时可能会缺失。</td><td><a data-mention href="https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/troubleshooting-guide/missing-newtonsoft-json.md">缺少 Newtonsoft Json</a></td><td></td><td></td><td></td></tr><tr><td>缺少 Animation Rigging</td><td><pre data-overflow="wrap"><code>Assets\Convai\Scripts\Utils\HeadMovement.cs (2,30): error CS0234: The type or namespace name 'Rigging' does not exist in the namespace 'UnityEngine.Animations' (are you missing an assembly reference?)
</code></pre></td><td>我们使用 Animation Rigging 包进行眼部和颈部追踪。如果 Unity 没有自动添加该包，就需要通过 Package Manager 手动添加。</td><td></td><td></td><td></td><td></td></tr><tr><td>麦克风权限问题</td><td>麦克风图标亮起，但聊天界面中没有用户转录文本。角色似乎没有回应用户所说的话。</td><td>该插件需要麦克风访问权限，而此权限有时默认未启用。</td><td><a data-mention href="https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/troubleshooting-guide/microphone-permission-issues.md">麦克风权限问题</a></td><td></td><td></td><td></td></tr><tr><td>默认动画不兼容</td><td>插件附带的默认动画似乎有问题。手部看起来与身体发生了穿插。</td><td>动画头像与角色网格不兼容。</td><td><a data-mention href="https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/troubleshooting-guide/default-animations-incompatibility.md">默认动画不兼容</a></td><td></td><td></td><td></td></tr><tr><td>动画包含面部混合形状</td><td>角色的唇形同步效果不可见或非常微弱。</td><td>某些类型的动画会控制面部混合形状。这些动画会导致唇形同步脚本无法正确编辑面部混合形状。</td><td><a data-mention href="https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/troubleshooting-guide/animations-have-facial-blendshapes.md">动画具有面部 BlendShape</a></td><td></td><td></td><td></td></tr><tr><td>头像中的下颌骨未设为自由</td><td>角色的唇形同步效果不可见或非常微弱。</td><td>角色的动画头像可能正在使用下颌骨。如果将映射设置为“无”，脚本就能自由操控下颌骨。</td><td><a data-mention href="https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/troubleshooting-guide/jaw-bone-in-avatar-is-not-free.md">Avatar 中的下颌骨未固定</a></td><td></td><td></td><td></td></tr><tr><td>Mac 安全权限问题</td><td>以下组件的安全权限问题： <code>grpc_csharp_ext.bundle</code> Unity 在 macOS 上的 DLL。</td><td>macOS 的安全协议可能会阻止某些未签名的外部 DLL（例如 <code>grpc_csharp_ext.bundle</code>）在 Unity 中正常运行。</td><td><a data-mention href="https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/troubleshooting-guide/macos-permission-issues.md">macOS 权限问题</a></td><td></td><td></td><td></td></tr><tr><td>在 Unity 中为 Intel Mac 构建通用版本时的麦克风权限问题</td><td>未弹出麦克风访问权限请求</td><td>尝试构建通用版本时， <code>grpc_csharp_ext.bundle</code> 的 Intel 版本与 Apple Silicon 版本不兼容。</td><td><a data-mention href="https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/building-for-supported-platforms/microphone-permission-issue-on-intel-macs-with-universal-builds.md">为 macOS 通用应用构建</a></td><td></td><td></td><td></td></tr></tbody></table>

如有其他问题，欢迎在以下论坛联系我们： [Convai 开发者论坛](https://forum.convai.com/).


---

# 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/troubleshooting-guide.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.
