Hand Pose Recording¶
The pose recorder enables a developer to record their own poses, all from within a Unity scene.
Whilst you can use this scene to record your own poses for use in your packaged build, we do not recommend packaging this scene or the pose recorder in a build because it saves assets to the asset package and this might cause issues on different platforms.
Note
Sample scene can be found in:
Assets/Samples/Ultraleap Tracking/x.x.x/XR Examples/3. Pose Detection/1. Pose Recorder.unity
Quick Start with Pose Recording¶
For this example, we assume that you have just finished the Getting Started Guide.
Note
This scene does not allow you to record gestures; it only allows you to record stationary static poses such as a thumbs up.
From the samples folder, open the pose recorder scene: Assets > Samples > Ultraleap Tracking > x.x.x > XR Examples > 3. Pose Detection > 1. Pose Recorder.unity
Click the
PoseRecorder
object from the hierarchy.In the inspector, name your pose.
Select which hand you want to record and where the pose should be saved.
The hand to record drop down chooses which hand you should make the pose with in this recorder. You will be able to detect this pose with either hand.
Press play to run the scene and put your XR headset on.
Press the “Record Pose” button in front of you with your virtual hand.
You will have 3 seconds to make a pose with the hand that you specified in the pose recorder before the pose will be saved under the name that you entered.
You will see a pair of hands appear in front of you which will show the pose that you just made on both hands.
Make the pose again with either hand to see if your pose has been detected. There will be a panel which drops down from the scene explanation panel which tells you the name of the pose that is detected in the scene.
Your pose will be saved in the Pose recorders save path.
Tips¶
We recommend that you use the pose recorder scene that we have set up in order to create new poses for use in your applications.
This scene and the PoseRecorder
script will not work as expected if packaged into a build.