Please Select Your Location
Australia
Österreich
België
Canada
Canada - Français
中国
Česká republika
Denmark
Deutschland
France
HongKong
Iceland
Ireland
Italia
日本
Korea
Latvija
Lietuva
Lëtzebuerg
Malta
المملكة العربية السعودية (Arabic)
Nederland
New Zealand
Norge
Polska
Portugal
Russia
Saudi Arabia
Southeast Asia
España
Suisse
Suomi
Sverige
台灣
Ukraine
United Kingdom
United States
Please Select Your Location
België
Česká republika
Denmark
Iceland
Ireland
Italia
Latvija
Lietuva
Lëtzebuerg
Malta
Nederland
Norge
Polska
Portugal
España
Suisse
Suomi
Sverige

Getting Started with OpenXR


What will you learn?

You will learn how to setup a project using the VIVE OpenXR Plugin to create immersive content that runs on devices such as VIVE Devices.

Note: In this tutorial we will use Unity 2021.3.9f1 and VIVE Devices.
Prerequisite: Unity Versions 2020.3.15f2, 2020.3.30f1 and 2021.3.3f1 are verified and recommended.


What is VIVE OpenXR Plugin?

OpenXR enables XR portability across hardware VR devices to help developers prioritize content creation over porting.


Setup Project

Download the Vive OpenXR Plugin here.


Project Settings

  1. In File-> Build Settings, the target platform needs to be set to Android or PC. Click on Switch Platform.

  2. In Edit-> Project Settings-> Player-> Resolution and Presentation-> Orientation, Default Orientation needs to be set to Landscape Left.
    Picture2.width-800.png

  3. In Edit-> Project Settings-> Player-> Other Settings-> Graphics APIs, choose OpenGLES and remove Vulkan. ※ To shorten the build time of the Unity project , we recommend you choose only one Graphics API.
    ※ If you do not see the session for choosing Graphics APIs, please make sure the Auto Graphics API is unselected. (For more information of what Auto Graphics API does, please see here.)
    Picture3.width-800.png

  4. In Edit-> Project Settings-> XR Plug-in Management enable OpenXR and VIVE XR Support feature group.

  5. After enabling VIVE XR Support feature group, you may see a pop-up for OpenXR Project Validation with multiple issues displayed. Select Fix All.
    Picture5_9TQHCZI.width-800.png


Create a test scene

Right-Click in the Hierarchy window and choose XR-> Convert Main Camera to XR Rig.

Picture7.width-800.png

Optional: Adding Controllers

Follow Unity's documents to configure an XR Rig with the XR Interaction Toolkit.

USB Debugging

Enable USB Debugging in the headset. Now the project can be built and run on VIVE Devices. For issues building and running the project, refer to Unity's Publishing to Android tutorial.