Hand Tracking
Hand tracking enables users' hand gestures as the input for YVR headsets, thereby striking more natural and engaging interactions between apps and users, so as to enhance the immersive VR experience. You can integrate the hand tracking feature into your app, so users can click, select, drag and drop, and perform other operations in your apps with simple hand gestures such as poke, pinch, and hold.
Note
Hand tracking is only supported for 64-bit applications. Before using this feature, under Edit > Project Settings > Platform > Android > Build, make sure to check Support arm64 and uncheck Support armv7.
Setup Steps
In the top left of the editor, click Edit > Project Settings > Plugins > YvrXR Settings.
Under the Controller section, set HandTracking Support to Controllers and Hands / Hands Only.
Add Hand Tracking Componenets
You can add the YvrXRHand component to a Pawn or Actor as needed.
Double click on the Pawn or Actor you would like to add the YvrXRHand component.
In the top left corner of the screen, click + Add Component, enter "XRHand" in the search box, and then add it to the component directory of the Actor or Pawn.
Set Hand Tracking Components
Once you have added the component for the Pawn or Actor, you will need to select the Pawn or Actor and make the following settings in its Details panel.
Under the Mesh section, click the drop-down button to the right of Skeletal Mesh and select the skeletal mesh you need to assign to the corresponding component.
Under the Hand Properties section, click the drop-down button to the right of Skeleton Type and select a skeleton type. Check Hide by Confidence and Update Hand Scale.
If you are using BP_XRHandComponent_Left and BP_XRHandComponent_Right, under the Custom Skeletal Mesh section, hand tracking nodes have already bound the hand component's bone key.
Sample
The Hand Tracking sample project sets you up to create a simple hand tracking demo. It illustrates how to use the YVR hand tracking feature.
Please follow the steps to view the sample:
Open the
VRTemplate.uproject
.Connect to YVR device.
Select Launch to start the sample project.