In our previous lesson, you successfully configured the project for the Meta Quest platform by installing the Meta XR All-in-One SDK and using its Project Setup Tool. Your Unity project now has the low-level drivers and foundational support needed to communicate with Quest hardware. However, it still lacks a high-level framework for building interactions.
This lesson focuses on installing and configuring that framework: the XR Interaction Toolkit (XRI). Think of XRI as a library of pre-built components for common VR actions. Where the Meta SDK provides the connection to the hardware, XRI provides the tools to define what happens when you press a button, grab an object, or point at a menu. Your experience with component-based systems like Salesforce LWC will be conceptually useful here, as XRI allows you to build complex interactions by combining and configuring smaller, reusable components.
By the end of this lesson, you will have installed and configured this essential toolkit, completing the core setup of our VR development environment.
1. Understanding the XR Interaction Toolkit
Before we install it, let's clarify the roles of the different layers we've assembled:
- OpenXR: A universal, open standard API that acts as a middleman between VR applications and hardware. It ensures your app can talk to different VR systems.
- Meta XR SDK: Meta's specific implementation and additions for the OpenXR standard. It provides access to Quest-specific features and optimizations. This is the hardware driver layer.
- XR Interaction Toolkit (XRI): A high-level, component-based framework from Unity that sits on top of the other layers. It provides ready-to-use systems for locomotion (teleporting, smooth movement) and interactions (grabbing, pointing, UI interaction). This is our application and interaction logic layer.
We will now install XRI and its essential companion assets.
2. Installing the XRI Package
The XR Interaction Toolkit is a standard Unity package, which we will install using the Package Manager.
- In the Unity editor, navigate to Window > Package Manager.
- In the top-left of the Package Manager window, click the "Packages: In Project" dropdown and select Unity Registry. This lists all available packages provided by Unity.
- Use the search bar in the top-right to search for
XR Interaction Toolkit. - Select it from the list and click the Install button.

A pop-up may appear warning you that this will enable the new Input System and require an editor restart. Click Yes. If another pop-up asks if you've made a backup, you can click "I have made a backup" or "No thanks" since this is a fresh project.
For a visual guide through this process, the following video is very helpful.
Unity VR XR Development Meta Quest 2023, Getting Started PC & Mac, Open XR, XR Toolkit
This segment from a tutorial by Rob Shocks on YouTube clearly demonstrates the process of finding and installing the XR Interaction Toolkit via the Package Manager.
Watch from the beginning of the section where the presenter opens the Package Manager, switches to the Unity Registry, and installs the toolkit.
3. Importing Starter Assets and the Simulator
Once installed, the XRI package page in the Package Manager will display a Samples tab. These samples contain crucial, pre-configured assets that will significantly speed up development. We need to import two of them.
- With the XR Interaction Toolkit still selected in the Package Manager, find the Samples dropdown.
- Import the Starter Assets. This package includes default input mappings (e.g., binding the trigger button to the "Activate" action), controller models, and interaction presets.
- Import the XR Device Simulator. This is essential for you, as it will allow you to simulate VR controllers and head movement using your mouse and keyboard, removing the need for a physical headset during development.
The same video from Rob Shocks also covers this step immediately after the installation.
Unity VR XR Development Meta Quest 2023, Getting Started PC & Mac, Open XR, XR Toolkit
This clip shows how to find and import the essential samples that come with the XRI package.
Continue watching from where you left off, from importing the samples. The presenter imports both the XR Device Simulator and the Starter Assets.
4. Configuring Default Controller Presets
One of the most powerful configuration steps you can take now is to tell Unity to automatically use the input actions from the Starter Assets whenever you create a new VR controller in your scene. This saves you from having to manually link dozens of actions every time.
This process involves two steps: marking the default controller assets and then updating the project's Preset Manager.
How To : Unity VR Basics 2023 – Setup (XR Interaciton Toolkit) – Fist Full of Shrimp
This article from Fist Full of Shrimp provides an excellent walkthrough of the entire setup process. We will focus on the part that configures the default presets.
Find the heading Testing Environment and XR Rig. We won't be setting up the rig yet, but we will follow the instructions in the second half of this section. First, find the part of the text that begins with "As a bonus". Follow these instructions to navigate to the Starter Assets folder (Assets > Samples > XR Interaction Toolkit > [version] > Starter Assets) and add both the XRI Default Left Controller and XRI Default Right Controller to the defaults. Next, read the instructions under "Last, we need to connect it using the Preset Manager". This will guide you to open Edit > Project Settings > Preset Manager and create the left and right entries that link to the controller presets.
This configuration ensures that any ActionBasedController component you create will automatically be populated with the correct input references, a significant time-saver that exemplifies the power of a well-configured project.
5. Final Project Validation
Just as we did after installing the Meta SDK, it's good practice to run the validator again after adding a major package like XRI.
- Go to Edit > Project Settings > XR Plug-in Management.
- Click on the Project Validation tab at the bottom.
- Make sure you are viewing the Android settings (the tab with the Android logo).
- If any new issues have appeared (marked with a red or yellow icon), click the Fix All button.
This final check ensures your project is fully compliant with the requirements of both the Meta SDK and the XR Interaction Toolkit.
Conclusion
You have now completed the foundational setup of your Unity project. By installing and configuring the XR Interaction Toolkit, you've added the high-level framework necessary to build interactions. You didn't just install the package; you intelligently configured it by importing the essential Starter Assets and setting up default controller presets, a step that will streamline your workflow in all subsequent lessons.
Key Takeaways:
- The XR Interaction Toolkit (XRI) is a component-based Unity package for creating VR/AR interactions.
- It is installed from the Unity Registry via the Package Manager.
- The Starter Assets and XR Device Simulator samples are crucial for development, providing default inputs and a way to test without a headset.
- Configuring the Preset Manager to use the default controller actions automates a significant part of the scene setup process.
With the environment fully prepared, we are finally ready to create our first virtual reality scene. In the next lesson, you will learn how to set up a basic scene using the XR Origin prefab and use the XR Interaction Simulator to look around and test that everything is working correctly.