STYLY for Vision Pro: How to implement hand gestures

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.

Image4

Add a Cube to the Hierarchy and add “Gesture Hand” from Add Component.

Image2

In the Hand Tracking Event of “Gesture Hand,” attach the object with “XR Hand Tracking Events” attached.

Image3

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.

Image1

Add ScriptMachine to the Cube and create a new Graph. Connect the nodes as shown below.

Image6

Set up the Gesture Tracker as shown below.

Image7

Execute.

This is a video mentioned in the wiki.

This time, we introduced how to implement hand gestures.