Your first project: Hello Hands

In this example project, you'll learn how to set up Ultraleap Hand Tracking in a fresh Unity project.

This example assumes that you already understand the Getting Started with Unity steps.


How to set up unity for Tabletop development

The following steps are sufficient to see your first set of tracked hands in Unity. Note, for some platforms, you may need to set up a system specific SDK or scene components (see Getting Started with Unity for more info).

  1. Create a new 3D project in unity.

../../../../_images/unity-hub-new-project.png
  1. Create a new scene and name it appropriately.

../../../../_images/new-scene-unity.png
  1. Import the Ultraleap tracking package as described in Getting Started with Unity

../../../../_images/packagelist.png
  1. Add a Service Provider (desktop) prefab to the scene. This provides hand tracking data to the application. Provider prefabs can be found via the toolbar under Ultraleap > Tracking > Service Provider (Desktop).

../../../../_images/add-desktop-service-provider.png
  1. From the same toolbar menu as before, add a set of hands to the scene as a child of the Service Provider (desktop). The Hand Prefabs can be found under ‘Ultraleap > Hands`. The plugin provides a few different hand visuals. The iconic Capsule Hands are procedurally generated to match the tracking data. There are also rigged (mesh) hands, including low polygon hands, outline hands and others.

../../../../_images/add-capsule-hand-tabletop.png
  1. Press Play, or follow unity’s build instructions for your desired platform.

../../../../_images/tabletop-capsule-hands.png

If you want to do more with your virtual hands, i.e. interact with objects or access hand data in a script, it’s worth reading the relevant documentation in Features.


Building

Ultraleap does not have any specific build requirements so you can build this project for any platform. Just be sure to follow your chosen platforms steps for building the project.


Troubleshooting

If you do not see your hands in Unity, check the following:

  • Make sure you have the correct “Provider” in your scene. Provider prefabs are suffixed Desktop, Screentop, or XR. For this demo, you need the “Desktop” provider.

  • If you are using a custom camera or controller rig, check your application’s scene hierarchy while your hand is in front of the sensor. Make sure the hand isn’t simply being rendered in the wrong place relative to your camera.

  • Check the Ultraleap Tracking Icon in your task bar. If it has a red circle overlay this means the Ultraleap Tracking Service isn’t sending any data. Double-check that your Ultraleap Hand Tracking Camera is plugged in, and check that the Ultraleap Tracking Service is running.

  • Open the Ultraleap Visualizer from the right-click menu of the Ultraleap Tracking Icon in your task bar. If you see hands in the Visualizer, the problem is likely somewhere in Unity.

Need additional support? Get in touch we’d be happy to help.


What’s next?

Why not take a look at all the cool features that the plugin has to offer your project? You can find them here: Plugin Features.


Back to top