Hand Tracker allows you to track the hand that is in the camera’s view. You can attach 3D objects, special effects, and even triggers to each hand.
Add a Hand Tracker
Add a Hand Tracker object by clicking the Add button [+] > AR Tracking > Hand Tracker in the Hierarchy panel.
The object will only follow one hand.
Attach a 3D Object to the Hand
Navigate to the Hierarchy panel and click the Add button [+] > 3D > Sphere to add a Sphere to the scene. To ensure that the Sphere follows the hand, you must parent the Sphere object under the Hand Tracker object.
Hand Tracker Properties
You can change which part of the hand the Sphere object follows and how it follows the hand. Select the Hand Tracker from the Hierarchy panel and navigate to the Inspector panel.
Anchor: Select which parts of the hand you want your objects to follow. It is set to Hand Center by default, but you can modify it to track specific fingers or the wrist.
- Hand Center (default), Thumb Tip, Index Finger Tip, Middle Finger Tip, Ring Finger Tip, Pinkie Tip, Thumb, Index Finger, Middle Finger, Ring Finger, Pinkie, and Wrist.
Rotate Axis Z: The object will follow the rotation of the hand or finger along the Z axis.
- Distance to Screen: Adjusts the distance of the object from the screen. The larger the value, the further away it will move from the screen. The default value is 20.
Hand Detection Node
Use the Hand Detection node to detect if there is one hand or two hands in the scene.
Demo Effect: Hand Gesture Trigger Animation
Check out this tutorial to learn how to trigger effects using the Hand gesture node.