Setup Hand Tracking

To setup hand tracking, you must have installed the XR Management Plugin.

In the Unity Editor go to Edit > Project Settings > XR Plugin Management and make sure that OpenXR is enabled for your build target.

../../../_images/step1.png

Next, under XR Plugin Management click on OpenXR and choose your build target.

../../../_images/step2.png

On the right hand side, in the Enabled Interaction Profiles add an Oculus Touch Controller Profile.

../../../_images/step3.png

Under OpenXR Feature Groups make sure that Hand Tracking Subsystem, Meta Hand Tracking Aim and Meta Quest Support are enabled.

Note

On PCVR (Desktop) platforms only Hand Tracking Subsystem, Meta Hand Tracking Aim must be enabled.

../../../_images/step4.png

Enable ARM64 Architecture for Android

(Android): OpenXR on android requires the ARM64 architecture:

In the Unity Editor go to Edit > Project Settings > Player and on the right hand side, expand the Other Settings foldout.

../../../_images/arm64-step1.png

Scroll down until you see the Configuration section and change the Scripting Backend to IL2CPP, and on the Target Architectures, make sure that ARM64 is enabled.

../../../_images/arm64-step2.png

Now you are ready to use hand tracking in your project! During play, put down your controllers and hold your hand in front of you to switch to hand tracking mode.

Hand Tracking Controls

Controls

Action

Description

Image

Click on UIs from a distance

Point towards the UI and make a pinch gesture to click

../../../_images/pinch.png

Click on UIs up close

Touch the UIs with your finger

../../../_images/touch.png

Grab Objects

Move your hand close to an object and curl your middle, ring and pinky fingers fully

../../../_images/curl.png

Activate Objects

For objects that require activation, while grabbing, touch your thumb to your index finger

../../../_images/pinch.png

Enable Teleport

To enable teleport, make a finger gun gesture with your hand and point towards the ground where tou want to appear

../../../_images/finger_gun.png

Confirm Teleport

To confirm teleport, close your index finger

../../../_images/thumbs_up.png

Show Menu

To show the menu, turn your right hand’s palm to face towards you, and click on the icon that appears with your index finger

../../../_images/menu.png

Change Height

To change your height, turn your left hand’s palm to face towards you, and click on the arrows that appear beside your wrist

../../../_images/height.png