text
stringlengths
0
1.11k
For First Hand’s source code, see the First Hand GitHub repo.
For Move Fast’s source code, see the Move Fast GitHub repo.
Next steps
To install and set up the Interaction SDK, see Getting Started with Interaction SDK.Getting Started with Interaction SDK
Unity
All-In-One VR
Quest
The platform for which this article is written (Unity) does not match your preferred platform (Nativa).
Haz clic aquí para ver la página del índice de la documentación para tu plataforma de preferencia.
The Meta XR Interaction SDK for Unity is available on the Unity Asset Store as either a set of three standalone packages or as part of an All-in-One SDK. The All-in-One SDK bundles several of Meta’s Virtual Reality SDKs, including the Meta XR Core SDK, Meta XR Interaction SDK, Meta XR Voice SDK, and Meta XR Platform SDK. This tutorial explains how to install and set up the Interaction SDK in your Unity project.
Note
Interaction SDK users can ignore the Set up Hand Tracking tutorial. It's obsolete if you're using the SDK.
Before you begin
Note
Open the links below in a new tab since they don't link back to this page.
Complete Set Up Development Environment and Headset.
Complete Use Meta Quest Developer Hub and Meta Quest Link.
Add packages to your Unity assets
There are two ways to install Interaction SDK from the Unity Asset Store. The first way, Option A, uses a set of standalone packages. The second way, Option B, uses the Meta XR All-in-One package. The standalone packages are smaller since they only contain Interaction SDK, whereas the larger All-in-One package includes additional Meta XR SDKs that you may want to use in your project.
Choose either Option A or Option B.
Option A: Adding Standalone packages
To install the SDK via standalone packages, in the Unity asset store, add these packages to your Unity assets.
Meta XR Interaction SDK, which provides the core implementations of all the interaction models along with necessary shaders, materials, and prefabs.
Meta XR Interaction SDK OVR Integration, which allows Interaction SDK to interface with OVRPlugin.
Meta XR Interaction SDK OVR Samples, which contains sample scenes, prefabs, and art assets for Interaction SDK using OVR variants of the player rig.
Option B: Adding All-in-One package
To install the SDK via the All-in-One package, add these packages to your Unity assets.
Meta XR All-in-One SDK, a wrapper package that depends on the latest version of all main Meta XR SDKs, making it easy to get started with VR and MR development.
Meta XR Interaction SDK OVR Samples, which contains sample scenes, prefabs, and art assets for Interaction SDK using OVR variants of the player rig.
Import packages
Once you’ve added the SDK packages to your Unity assets, you need to import the packages into your Unity project so they’re available locally.
Open the Unity project where you want to use Interaction SDK.
Select Window > Package Manager to view your available packages.
The Package Manager window appears.
In the Package Manager window, click Install next to each SDK package you downloaded in the previous section. This adds them to your project.
If you chose the standalone packages, the packages you need to install are:
Meta XR Interaction SDK
Meta XR Interaction SDK OVR Integration
Meta XR Interaction SDK OVR Samples
If you chose the All-In-One SDK, the packages you need to install are:
Meta XR All-in-One SDK
Meta XR Interaction SDK OVR Samples
Installing the packages
Each package’s folder appears in the Project window under Packages once it’s installed.
Packages listed in the Project window
For the Meta Interaction SDK OVR Samples package, on the right side of the window, select the Samples tab.
Click the three Import buttons to import the sample scenes into your project.
Import samples
Run the Unity Project Setup Tool
The Unity Project Setup Tool optimizes Android project settings for Meta Quest Unity apps, including texture and graphics settings. The tool applies the required settings for creating Meta Quest XR apps, including setting the minimum API version, using ARM64, and installing the Oculus XR Plug-in and XR Plug-in Management package.
Note
If you've run the Unity project setup tool before, skip to the next section.
Navigate to Oculus > Tools > Project Setup Tool.
In the checklist under the Android icon tab of the Project Setup Tool, select Fix All.
Project Setup Tool Fix All
If you still see Recommended Items in the list, select Apply All.
Project Setup Tool Apply All
Add the rig
In Interaction SDK, the rig is a predefined collection of GameObjects that enable you to see your virtual environment and initiate actions, like a grab, a teleport, or a poke. The rig is contained in a prefab called OVRCameraRigInteraction, which automatically adds a ready-to-use camera, hands, and controllers to your scene. However, using controller driven hands for interactions instead of controllers still requires some manual setup.
Interaction SDK does provide a second rig prefab that doesn’t include a camera but instead uses a camera you provide. For more information, see Use Cameraless Rig Prefab. However, we strongly recommend using the rig described in this section instead.
In your Unity scene, delete the default Main Camera GameObject from the Hierarchy, since the SDK uses its own camera rig.