This blog will help you get started with creating VR games using XR Interaction Toolkit in Unity. Also, helpw you setup Unity for using it with HTC Vive or any other OpenXR supported devices.
The latest XR Manager Plugin does not come with OpenXR support. It has to be downloaded separately and installed, which is not that difficult.
The steps mentioned in step 1 and 2 of this post is derived from this YouTube tutorial. If you have the XRInteraction Toolkit and the XRController set up already, you can jump to section 3 which shows how HTC Vive can be used with the OpenXR plugin.
This section explains the steps that are to be taken to downloading and import XR Interaction Toolkit into Unity.
This section explains how the XR rig can be set up with the default key bindings. We have the option to manually assign it but that is a tedious and time-consuming process. So to begin with, it's recommended to use the default setting and later on you can customize the controls.
This completes the basic setup for developing VR projects. The next section shows the setup of OpenXR
The OpenXR plugin was released recently for Unity version 2020. Earlier, developers had to use the older Unity versions for it to be compatible with HTC Vive.
With that done, HTC Vive and its controllers can now be used to develop the project.
The Open XR plugin is stable even though it's in the preview version. I didn't face any bugs so far. I'm not sure if this plugin supports other PC VRs, that's something you will have to find out by yourself.
🎉 With that, we have finished setting up Unity to create our VR projects.
If you've enjoyed the insights shared here, why not spread the word? Share the post with your friends and colleagues who might also find it valuable.
Your support means the world to us and helps us create more content you'll love.