This time, we will introduce how to implement hand gestures in STYLY for Vision Pro. Hand gestures can trigger events when a specific movement is made with the hands.
How to Implement Hand Gestures
This time, we will implement a method to change the color of the Cube when a hand gesture is made.
Create an empty object in the Hierarchy by selecting Create Empty. Then, attach “XR Hand Tracking Events” from Add Component.
Add a Cube to the Hierarchy and add “Gesture Hand” from Add Component.
In the Hand Tracking Event of “Gesture Hand,” attach the object with “XR Hand Tracking Events” attached.
Select a hand shape from Samples-STYLY→Reusable Assets→Hand Gestures→Hand Poses.
Since we want to change the color when making a thumbs-up gesture, attach “ThumbsUp” to Hand Shape Or Pose.
Add ScriptMachine to the Cube and create a new Graph. Connect the nodes as shown below.
Set up the Gesture Tracker as shown below.
Execute.
This is a video mentioned in the wiki.
This time, we introduced how to implement hand gestures.