> 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/compatibility-and-requirements/unity-versions-and-render-pipelines.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 环境要求参考，包括最低 Unity 版本、所需包依赖项和渲染管线支持。

Convai Unity SDK 要求 Unity <code class="expression">space.vars.unity\_min\_version</code>。较早的 Unity 版本没有受支持的配置；SDK 可在 Unity `6000.5` 上编译，因为 Unity 现已将场景标识改为 64 位。三种 Unity 渲染管线均受支持，无需额外配置；无论通过 Package Manager 还是 Asset Store 安装，所需的软件包依赖项都会自动解析。

### Unity 版本要求

| 要求      | 版本                                                                     |
| ------- | ---------------------------------------------------------------------- |
| 最低要求    | <code class="expression">space.vars.unity\_min\_version</code>         |
| 新项目推荐使用 | <code class="expression">space.vars.unity\_recommended\_version</code> |

{% hint style="warning" %}
最低版本是硬性下限。Convai 不支持低于 Unity <code class="expression">space.vars.unity\_min\_version</code>的任何配置，包括更早的 LTS 版本。请先升级项目，再安装 SDK。
{% endhint %}

### 必需的软件包依赖项

SDK 依赖四个 Unity 软件包。两种安装方式都会自动安装这些软件包——除非遇到版本冲突，否则无需手动添加。

| 包                                 | 版本                                                                        |
| --------------------------------- | ------------------------------------------------------------------------- |
| `com.unity.ai.inference`          | <code class="expression">space.vars.dep\_ai\_inference\_version</code>    |
| `com.unity.nuget.newtonsoft-json` | <code class="expression">space.vars.dep\_newtonsoft\_json\_version</code> |
| `com.unity.ugui`                  | <code class="expression">space.vars.dep\_ugui\_version</code>             |
| `com.unity.inputsystem`           | <code class="expression">space.vars.dep\_inputsystem\_version</code>      |

{% hint style="warning" %}
安装后请勿降级这些软件包。SDK 面向上方列出的版本；在较低版本上的行为未定义。如果项目已在 `Packages/manifest.json`中固定了其中任一软件包的较旧版本，请在安装前移除或更新该固定项。
{% endhint %}

由 NavMesh 驱动的移动还需要一个 SDK 不会安装的软件包。 `ConvaiNavMeshLocomotion` 会驱动 Unity 内置的 `NavMeshAgent`，但 NavMesh 的创建工具—— `Window > AI > Navigation` 以及 `NavMeshSurface` 组件——来自 `com.unity.ai.navigation`。如果项目会为角色移动烘焙 NavMesh，请通过 Package Manager `com.unity.ai.navigation` 自行安装。

### 渲染管线支持

SDK 会在运行时检测当前使用的渲染管线并自动进行适配。例如，Vision 模块的摄像机采集路径在未指定渲染管线资源时使用内置渲染钩子，在 URP 和 HDRP 中则使用显式渲染路径。三种 Unity 渲染管线均获全面支持，无需手动配置。

| 渲染管线          | 支持     |
| ------------- | ------ |
| 内置渲染管线        | ✅ 完全支持 |
| 通用渲染管线 (URP)  | ✅ 完全支持 |
| 高清渲染管线 (HDRP) | ✅ 完全支持 |

所有管线均无需手动配置即可获得支持，但 Vision 模块的 `CameraVisionFrameSource` 会根据管线采用不同的采集方式。在 Built-in 管线中，它使用命令缓冲区渲染钩子，无需额外的渲染通道。在 URP 和 HDRP 中，它会回退到显式渲染兼容路径，每采集一帧额外调用一次 `Camera.Render()` 。

随 SDK 提供的示例场景使用 URP 材质。如果项目使用 Built-in 或 HDRP 管线，则需要重新指定示例场景的材质。位于 `SamplesShared/Camera/` 中的可选景深摄像机脚本支持 URP 和 HDRP；在 Built-in 管线中，它们会跳过景深效果并记录一条警告。这些脚本均非 SDK 正常运行所必需。

### 后续步骤

确认 Unity 版本和软件包后，请检查目标平台。

{% content-ref url="/pages/d9f64c1a3c295b98fd7638d4cc75e01943fa23bc" %}
[平台支持矩阵](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/compatibility-and-requirements/platform-support-matrix.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/compatibility-and-requirements/unity-versions-and-render-pipelines.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.
