Version: 2021.2
XR 中的通用渲染管线兼容性
Unity AR project template

Unity VR project template

Unity’s VR project template provides a starting point for virtual reality development in Unity. The template pre-installs the packages you need for VR development and is pre-configured with headset and controller tracking in the Scene hierarchy.

Unity directly supports the following VR platforms:

For more information on how to start developing apps for these platforms in Unity, refer to their documentation in the list above.

If you are planning to target Valve’s OpenVR platform, you must download Valve’s OpenVR Unity XR Plugin and their SteamVR Unity Plugin for input.

Using the VR project template

To use the VR project template, follow these steps:

  1. Install Unity 2019 LTS and make sure you add the right build targets for each platform you plan to deploy to. See the Supported build targets table on this page for more information.
  2. From the Unity Hub, click the dropdown next to New and create a new project in Unity 2019.4 LTS.
  3. Select the VR template and name your Project.
  4. Click Create.
  5. After your Project has been created, from Unity’s main menu, go to Edit > Project Settings > XR Plug-in Management, and select the platforms you plan to deploy to.
  6. Make sure rendering and quality settings are optimized for your target platform. See the Rendering and quality settings table on this page.

Supported build targets

设备 Player type 插件提供商
Oculus Quest Android Oculus
Oculus Rift 和 Rift S Standalone Oculus
Windows Mixed Reality VR UWP or 32-bit Windows Windows Mixed Reality

Rendering and quality settings

平台 图形 API 立体渲染模式
Oculus Quest OpenGL ES 3.0 多视图
Oculus Rift 和 Rift S DX11 Single pass instanced
Windows Mixed Reality VR DX11 Single pass instanced

Removing the example Assets from the Scene

If you want to completely remove the example Assets from your Project, follow these steps:

  1. In the Project window, open the Assets folder.
  2. Right-click the ExampleAssets folder.
  3. Click Delete.
  4. In the pop-up that appears, click Delete.
  5. Make sure to remove the XRController GameObjects in the Scene Inspector.
XR 中的通用渲染管线兼容性
Unity AR project template
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961