# 开发环境搭建

您需要在正式开始 AR 应用程序开发之前执行此操作。

#### Unity编辑器版本

我们推荐您使用的Unity编辑器版本为

* **X2 sdk的unity编辑器版本为 2021.3.6f1c1**
* **X3Pro的sdk unity编辑器版本为 2022.3.36f1**

其余经测试可用版本为：  &#x20;

2020.3.20LTS及以上  &#x20;

2021.3.0LTS及以上  &#x20;

2022.2.0及以上  &#x20;

2023.1.0及以上

#### 安装 Unity 编辑器

您可以使用免费版或专业版 Unity Editor 来开发AR应用程序。初学者可能想先了解一下[Unity 用户手册](https://docs.unity3d.com/Manual/index.html)必须提供的信息。&#x20;

以下是安装 Unity Editor 的步骤： &#x20;

1.转到[Unity 下载页面](https://unity.com/download)。 &#x20;

2.下载并安装 Unity Hub。 &#x20;

3.启动 Unity Hub。 &#x20;

4.从左侧导航窗口中，选择 Installs。 &#x20;

5.在“ 安装” 窗口中，单击 “安装编辑器”。 &#x20;

6.找到目标 Unity Editor 版本并单击 Install。 &#x20;

7.在 Add modules 窗口中，检查 Android SDK & NDK Tools 和 OpenJDK。（建议您勾选Android Build Support下的所有选项。这将帮助您配置 Android 开发所需的环境。）

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

8.单击继续。

9.阅读条款和条件，然后检查 我已阅读并同意上述条款和条件。

10.单击安装。11.Unity 编辑器将在安装时支持 Android。

#### 创建新的项目

1\. 打开Unity Hub

2.右上角点击新项目，如果您安装了多个Unity版本，请单击顶部编辑器版本，选择2020.3.0 或更高的版本。

3.选择3d，输入项目名称和位置，然后点击创建目录

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


---

# Agent Instructions: 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://rayneo.gitbook.io/rayneo-devdoc/x-xi-lie/unity-kai-fa/kai-fa-huan-jing-da-jian.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.
