> 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/building-for-supported-platforms/convai-xr/building-for-vr.md).

# 为 VR 构建

## 将 Convai 与 VR 集成：快速且灵活的安装选项

{% embed url="<https://youtu.be/ixV077g2xX0>" %}

为虚拟现实（VR）设置 Convai 比你想象的更容易。只需点击几下，你就可以将 Convai 直接集成到你的 VR 项目中。

为了给用户提供灵活性和自定义选项，我们提供 **两种安装方式**:

* **自动安装**
* **手动安装**

### **自动安装**

如果你正在开始一个新项目，并希望避免处理 VR 包或额外的设置要求，那么自动安装方式是理想选择。此方法从一开始就提供一个完全集成了 Convai 的 VR 项目，包括 **Convai VR 演示场景** ，便于快速测试和探索。这种方式尤其适合初学者。

{% hint style="warning" %}
**注意：** 此安装方式将修改 Unity 项目设置。这些更改对于确保与 Convai 的兼容性是必要的。
{% endhint %}

### **手动安装**

手动安装方式是为现有 VR 项目设计的。使用此方式，你可以完全控制设置，因为 **不会修改项目设置，不会添加演示场景，也不会应用任何自定义内容**。只会集成 Convai 的 XR Unity 包，让你可以不受限制地使用任何 VR SDK。

## 选择你的安装方式

请选择两种安装方式中的一种，并点击下方对应的设置部分以查看说明。

{% content-ref url="/pages/3d10ec0354d57321deabc4c24dc24da3f35d877a" %}
[VR 自动安装](/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/building-for-supported-platforms/convai-xr/building-for-vr/vr-automatic-installation.md)
{% endcontent-ref %}

{% content-ref url="/pages/51259e8a7559b678ea4485c8161365eb65c6826a" %}
[VR 手动安装](/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/building-for-supported-platforms/convai-xr/building-for-vr/vr-manual-installation.md)
{% endcontent-ref %}

## Convai 控制器方案

<figure><img src="/files/f43da8a01d62324ad7d2b05f54d89fc2786904c0" alt=""><figcaption></figcaption></figure>


---

# 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/building-for-supported-platforms/convai-xr/building-for-vr.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.
