Fact: thanks to developers constantly creating more tools like Unity’s XR Interaction Toolkit, making VR and AR games is more accessible than ever before.
In this article, we’ll help get you started with the XR Interaction Toolkit and show you how it can change the way you approach your Unity projects with an easy-to-use component system.
Let’s get started!
Table of contents
What is the XR Interaction Toolkit?
Unity’s new XR Interaction Toolkit allows developers to implement interactivity into their AR and VR experiences without needing to code. The toolkit is available for Unity 2019.3 and can be downloaded from the Package Manager. It features a number of components which can be attached to different GameObjects in order to give them certain interactive properties. These are systems which typically need to be scripted or downloaded from external libraries. Now built into Unity, these systems are going to make developing an XR app faster and more stable.
While exploring the functionalities of Unity’s XR Interaction Toolkit, consider deepening your understanding with Zenva’s Virtual Reality Mini-Degree. This comprehensive course not only brings to light the vast possibilities of Unity for VR game and app design, but also includes a detailed explanation of the XR Interaction Toolkit featured in this article. It serves as an invaluable guide for any aspiring VR developer, providing real world projects and insights on industry best practices while keeping in line with the growing demand for VR skills.
Let’s now have a look at what’s available for both VR and AR.
- Interactivity with objects: hover over, select, grab, throw and rotate.
- Ability to interact with UI elements using your VR hands.
- VR locomotion: teleportation, snap turning.
- VR rigs for stationary and room-scale experiences.
- Haptic feedback through the controllers.
- Cross-platform XR controller input.
In order to use the AR interactions, AR Foundation is required. This is a Unity framework you can download from the Package Manager.
- AR gestures for interacting with objects in the world: tap, drag, zoom and pinch.
- Object placement.
- UI interactions.
- AR annotations to inform users about objects placed in the world.
XR (extended reality) is a blanket term for both virtual reality (VR) and augmented reality (AR). The toolkit covers both systems because although they function differently, many of the systems are the same. Tracking the rotation and position of a camera in 3D space (headset for VR, phone for AR) and interacting with objects (grabbing, selecting, etc).
Unity is also really good at platform independent development. You’ll notice that there’s no Oculus Interaction Toolkit, or Windows MR Interaction Toolkit. This is because on the surface, you’re developing for an XR interface and not any specific device. The same goes for AR. You don’t need to worry if the device you’re developing for is the iPhone X or 11. You’re developing for AR or VR inside of Unity and the engine does all of the translation between the different platforms behind the scenes.
As of late, Unity is putting more time into developing their XR systems. With the announcement of the new XR Plugin Framework earlier this year and now the XR Interaction Toolkit – developing VR for Unity is becoming easier and more accessible.
If you’re interested in trying out the new XR Interaction Toolkit, check out the tutorials below to give you a full overview on how these new systems work and how to add them to your project.
- Virtual Reality Mini-Degree by Zenva
- Unity Game Development Mini-Degree by Zenva
- VR Game Development 101 – Interaction Fundamentals by Zenva
- Unity XR Interaction Toolkit Tutorials series by Dilmer Valecillos
- Unity XR Toolkit series by VR with Andrew
- Introduction to VR in Unity – Unity XR Toolkit Tutorials by Valem
- How to Code a VR Game by Daniel Buckley
- How to Code an AR Application by Daniel Buckley
- How to Make a Mobile Game In Unity by Tim Bonzon
Other New Unity Features
FREE COURSES FINAL DAYS: Unlock coding courses in Unity, Unreal, Python, Godot and more.
FINAL DAYS: Unlock coding courses in Unity, Unreal, Python, Godot and more.