# 概述

本指南引导您在 Unity 编辑器中使用 Air SDK 创建一个基本的 XR 场景，然后将场景打包成可以运行在雷鸟 AR Glass+Android 手机上的应用程序。 本指南所使用的 Unity 编辑器版本为 2020.3.37 LTS 。

如果您完全不熟悉  Air SDK 应用程序开发，您可以按照本指南迈出进入 XR 世界的第一步。如果您已经具备一定程度的  Air SDK 应用程序开发和 Unity 功能专业知识，也可以将本指南用作独立参考。

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

<br>

## **准备开发工具**

### **1.  雷鸟 Air AR 眼镜**

Ffalcon XR 应用程序开发所需的设备。您可以在[以下途径](https://item.jd.com/10049299071589.html)获得设备。

### **2.  下载雷鸟 XR 眼镜 App**

扫描以下二维码，或者在[以下途径](https://xr-html-o.api.leiniao.com/m-xr/index.html#/download)可以下载并安装雷鸟 XR 眼镜 APP，插上雷鸟 XR 眼镜，先运行雷鸟 XR 眼镜 App，等 app 开启且切换 3D 模式成功后（需要在后台运行，不能杀掉），之后再运行您的 App 即可。

![](https://testopen.rayneo.cn/media/9d0acdafa40601401a2bb1789fdf7f2e.png)

### **3. PC**

建议您使用 Windows 10 操作系统作为开发环境，系统要求如下：

| CPU | Intel i5-4590 / AMD Ryzen 5 1500X 或更高 |
| --- | ------------------------------------- |
| 显卡  | NVIDIA GTX 1060 / AMD Radeon RX 480   |
| 内存  | 8 GB 或更高                              |

[从这里](https://www.microsoft.com/en-us/software-download/windows10)下载 Windows 10

## **Unity 编辑器**

编辑器版本应为 2020.3.36 及以上，低版本不支持。

### **Unity编辑器版本**

我们推荐您使用的Unity编辑器版本为2020.3.37LTS 其余经测试可用版本为：

* 2020.3.20LTS及以上
* 2021.3.0LTS及以上
* 2022.2.0及以上
* 2023.1.0及以上

### **安装 Unity 编辑器**

您可以使用免费版或专业版 Unity Editor 来开发 Ffalcon XR 应用程序。初学者可能想先了解一下 Unity 用户手册必须提供的信息。以下是安装 Unity Editor 的步骤：

1. 转到 Unity 下载页面。
2. 下载并安装 Unity Hub。
3. 启动 Unity Hub。
4. 从左侧导航窗口中，选择 Installs。
5. 在“ 安装” 窗口中，单击 “安装编辑器”。
6. 找到目标 Unity Editor 版本并单击 Install。
7. 在 Add modules 窗口中，检查 Android SDK & NDK Tools 和 OpenJDK。（建议您勾选 Android Build Support 下的所有选项。这将帮助您配置 Android 开发所需的环境。）

![](https://testopen.rayneo.cn/media/b428f899a592894c538e874b031f509e.png)

1. 单击继续。
2. 阅读条款和条件，然后检查 我已阅读并同意上述条款和条件。
3. 单击安装。
4. Unity 编辑器将在安装时支持 Android。

### **创建新的项目**

1. 打开 Unity Hub
2. 右上角点击新项目，如果您安装了多个 Unity 版本，请单击顶部编辑器版本，选择 2020.3.0 或更高的版本。
3. 选择 3d，输入项目名称和位置，然后点击创建项目

创建项目后，Unity 会将其添加到 Unity Hub

![](https://testopen.rayneo.cn/media/1cb8acf69f28c914aa9dd6d4c600e007.png)

<br>


---

# 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/air-xi-lie/unity-kai-fa/kuai-su-kai-shi/gai-shu.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.
