Version: 2019.3
Multiplayer 服务
Unity AR 开发入门

XR

XR 开发的新手?从这里开始。

XR 是一个统称,包括以下类型的应用程序:

  • 虚拟现实 (VR):这种应用程序模拟一个用户周围完全不同的环境。
  • 混合现实 (MR):这种应用程序将其自身的环境与用户的现实环境相结合,并允许彼此交互。
  • 增强现实 (AR):这种应用程序在现实世界的数字视图上将内容分层。

官方支持的平台

Unity works directly with strategic partners on implementation, testing, and customer support for their platforms.

As of 2019.3, Unity officially supports these platforms:

  • ARKit
  • ARCore
  • Microsoft HoloLens
  • Windows Mixed Reality
  • Magic Leap
  • Oculus
  • Gear VR
  • PlayStation VR

Unity 中的 AR 开发

The AR overview page details how to get started with creating an AR experience, the relevant packages you need to download, and offers related links to additional documentation. We recommend downloading the AR Foundation, XR Management, and XR Interaction Toolkit packages to create your app once and deploy it across ARKit, ARCore, Magic Leap, and/or HoloLens 1 & 2 devices.

Unity 中的 VR 开发

The VR overview page details how to get started creating a VR experience, the relevant packages you need to download, and offers related links to additional documentation. To start, we recommend downloading the XR Management and XR Interaction Toolkit packages.

XR plug-in architecture

Unity 2019.3 and newer versions use a new plug-in architecture to integrate our supported AR/VR platforms, available as packages in the Unity Package Manager. To learn more about the plug-in architecture, see the XR plug-in architecture page.

Unity Package Manager

Unity 的大多数 XR 功能都可在中找到,这些包可通过 Package Manager(从 Unity 的主菜单中选择 Window > Package Manager)进行安装。Package Manager 窗口显示有关每个包的详细信息。

注意:要查看预览包,请单击 Package Manager 窗口中的 Advanced 下拉菜单,然后选择 Show Preview Packages

有关要下载的包的完整列表,请参阅 AR 概述VR 概述页面。

API 用法示例

此 AR Foundation Samples GitHub 代码仓库包含有关如何使用 Unity AR Foundation API 的示例。

其他 Unity 资源

Multiplayer 服务
Unity AR 开发入门