Hand Tracking Overview
The Magic Leap 2 OpenXR Unity SDK supports hand tracking via the Hand Interaction Profile. The interaction profile can be enabled by selecting Edit > Project Settings > XR Plug-in Management > OpenXR, then adding the interaction profile into the Enabled Interaction Profiles section.
Enabling the Hand Interaction profile allows developers to access Hand Tracking data via Unity's Input System or using the Unity XR Hands Package.
This feature requires the HAND_TRACKING
permission to be enabled in your project's Permissions Settings (Edit > Project Settings > Magic Leap > Permissions).
To get started using hand tracking inside your application quickly. Checkout Unity's XR Hands Package.
In this Category
📄️ Quick Start XRHands
This section includes information on how to get started using Hand Tracking via Unity's XR Hands Package and the OpenXR Hand Interaction Profile. See the Unity Manual for more information about the XRHands Package and OpenXR Input.
📄️ XR Hand Interaction Demo
This guide will demonstrate how to configure the Unity XRI Hands Demo Scene to work with the Magic Leap 2.
📄️ Input Bindings
This guide provides information the Input Control Paths and Interaction Profiles that are supported on Magic Leap 2. For general information about the OpenXR Hand Interaction Profile in Unity. See the Unity OpenXR Hand Interaction Input Manual.
📄️ Input Device Feature Values
It is recommended that developers read the controller input using Unity's Input System. However, developers can obtain the controller's input directly from the InputDevice. This section provides an example of reading input using the TryGetFeatureValue method and XRCommonUsages features.