Skip to content

ViveSoftware/VIVE-OpenXR-Sample-Unity

Repository files navigation

Code Samples Banner

VIVE OpenXR Code Samples

The start samples here depend on VIVE OpenXR Unity Plugin and will inspire you on how to use the features.

The HTC License applies to the samples.

This project was built using the Unity 2021.3.16f1.

Get Code

Clone this repo using the "Code" button above, or below commands:

  • Using SSH
git clone [email protected]:ViveSoftware/VIVE-OpenXR-Sample-Unity.git
  • Using HTTPS
git clone https://github.com/ViveSoftware/VIVE-OpenXR-Sample-Unity.git

Run in Unity

  1. Make sure you're using Unity 2021.3.16f1 or newer.
  2. Switch to the Android or Windows platform in Build Settings.
  3. Click on VIVE > OpenXR Installer > Install or Update latest version from the menu bar to import the VIVE OpenXR Unity Plugin.
  4. Navigate to Project Settings > XR Plug-in Management > OpenXR platform settings, select VIVE XR Support and enable features you need.

Test on VIVE XR Elite / VIVE Focus Vision

MR
  • Set Build Settings > Platform to Android
  • Import [Customizable Planet Shaders] package into project.
  • Add scenes BaseScene, GameFlow, RobotAssistant, Setup and MRPerformance to the build setttings accordingly.
  • Check OpenXR in Project Settings > XR Plug-in Management > Initialize XR on Startup
  • In File > Build Settings click Build And Run

Developer Guidelines

Integrate Samples to Your Own Project

  1. Make sure your project uses the same SDK version

  2. Move the samples to your project

    Copy Samples Directory
    Create and Import UnityPackage
    1. Open VIVE-OpenXR-Sample-Unity project in Unity
    2. Right-click on Assets/CodeSamples and select Export Package...
    3. Save package in an easy location to retrieve
    4. Open your own project (where you want the samples to be added)
    5. Click on Assets > Import Package > Custom Package... from the menu bar
    6. Find the package we saved in step 3 and click Open

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •