Quick Start

From a fresh import to your own hand drawn on screen, in the editor, with no code. Ten minutes is the honest budget on a machine that already has Unity 6 open; most of it is Unity importing the package and compiling.

Everything below happens in the editor with a webcam. Building to a phone is step 9, and it needs no changes to the scene.

Before you start

  • Unity 6000.0 LTS or newer. There is no Unity 2022.3 build — the Inference Engine this package runs on requires Unity 6.
  • A webcam that nothing else is holding. Close the browser tab, the meeting app, the camera app. A camera held by another process is the single most common first-run failure, and it is covered in troubleshooting.
  • About 50 cm of space between you and the lens, in even light. The tracker works well outside that, but every instruction below was written at that distance.

1. Import the package

Import Calium Vision Kit from the Package Manager (Window ▸ Package Manager ▸ My Assets) or by double-clicking the .unitypackage. Everything lands under Assets/Calium/VisionKit/.

Unity then offers to install the package's declared dependency, com.unity.ai.inference. Accept it. Without it the package still compiles — it deliberately degrades to a stub whose only job is to offer the install again — but nothing tracks.

Unity's dependency-install prompt for com.unity.ai.inference

2. Run the Setup Wizard

Open Tools ▸ Calium ▸ Vision Kit ▸ Setup Wizard.

It checks six things and shows a fix beside each finding:

Check What it looks at
Inference package com.unity.ai.inference is installed and inside the supported version range.
Bundled models Both ONNX models import, match their decode contract, and complete one inference on the CPU backend.
Android camera permission Only a project with its own Assets/Plugins/Android/AndroidManifest.xml can be missing android.permission.CAMERA — Unity adds it automatically otherwise.
iOS camera usage description Player Settings ▸ iOS ▸ Camera Usage Description is not empty. iOS terminates an app that opens a camera without one.
Android graphics APIs Android is not set to Vulkan-only with no OpenGLES3 to fall back on.
Hand tracking configurations Your configuration assets carry the current decode contract.

Press Fix All. Nothing in this window changes your project until you press a button, and Fix All deliberately only applies fixes with one obviously right answer — installing a package and rewriting your own assets each ask first, on their own buttons.

When everything passes, the wizard says so and tells you the next step, which is step 3.

The Setup Wizard with all six checks green

The Setup Wizard reporting a finding, with its fix button

3. Open the Landmark Visualizer sample

In the Project window open:

Assets/Calium/VisionKit/Samples/LandmarkVisualizer/Landmark Visualizer.unity

There is nothing to assign, install, drag or configure in this scene. If any step below needs setup, that is a bug in the sample, not something you missed.

4. Press Play

For the first second or two a panel reads "Starting the camera and loading the models…". Then the camera image fills the middle of the Game view and a bar along the bottom reads "Show a hand to the camera."

The warm-up panel: starting the camera and loading the models

Camera live, no hand in frame: "Show a hand to the camera."

5. Raise a hand

The skeleton lands on your hand: joints on knuckles and fingertips, at every position in the frame and at every distance. Each finger has its own colour — thumb orange, index amber, middle green, ring blue, little violet, and the palm arch near-white.

The picture is a mirror. Move your hand to your left and the drawn hand moves to the left of the image as you look at it, which is what makes it feel like your hand rather than a video of somebody else's.

Above the hand is its label — Left or Right, as you would name it, with the mirroring already resolved — and a confidence percentage.

One open right hand at about 50 cm with the skeleton on it, labelled Right

Close crop of a spread hand showing the five finger-chain colours

6. Raise the other hand too

Two skeletons, each with its own label, each labelled correctly. Two-hand tracking is the default — MaxHands is 2 in the bundled configuration — and costs roughly twice the landmark inference.

Two hands in frame, two skeletons, both labels correct

7. Read the numbers

The overlay in the top-left is VisionDebugOverlay, and it is on the prefab you will use in your own scene. It shows application FPS, tracking FPS (the rate at which new results arrive, which is the number that describes how the tracking feels), inference milliseconds, pipeline milliseconds, and the active backend.

Tracking rate is not application frame rate, and the difference matters — see Performance.

The stats overlay with a hand tracked, all five lines legible

8. Put it in your own scene

Drag this prefab into any scene:

Assets/Calium/VisionKit/Prefabs/Calium Hand Tracking.prefab

It carries HandTrackingManager and VisionDebugOverlay. With nothing assigned it uses the bundled default configuration, opens a WebCamTextureSource, and starts tracking on enable. Press Play and hands are tracked.

The Calium Hand Tracking prefab selected, with every reference field empty

A gesture with no code

  1. Add a GestureEventListener component to any GameObject.
  2. Set Gesture to one of the seven shipped definitions in Assets/Calium/VisionKit/Configs/Gestures/ — Calium.Pinch is the easiest to trigger deliberately.
  3. Leave Required Handedness at Unknown for either hand, or pick one.
  4. Wire On Gesture Started to any target in the inspector, exactly like a Button's OnClick.

Press Play and pinch. The listener finds the HandTrackingManager in the scene by itself.

A Gesture Event Listener with Calium.Pinch assigned and the Manager field empty

The same thing in code

using Calium.Vision.Hands;
using UnityEngine;

public sealed class PinchWatcher : MonoBehaviour
{
    [SerializeField] private HandTrackingManager _manager;

    private void OnEnable()
    {
        _manager.OnGestureStarted += HandleGestureStarted;
        _manager.OnHandsUpdated += HandleHandsUpdated;
    }

    private void OnDisable()
    {
        _manager.OnGestureStarted -= HandleGestureStarted;
        _manager.OnHandsUpdated -= HandleHandsUpdated;
    }

    private void HandleGestureStarted(GestureEvent gestureEvent)
    {
        if (gestureEvent.Gesture == BuiltInGestures.Pinch)
            Debug.Log($"Pinch on the {gestureEvent.Handedness} hand at {gestureEvent.Confidence:0.00}.");
    }

    private void HandleHandsUpdated(HandFrame frame)
    {
        for (int i = 0; i < frame.HandCount; i++)
        {
            Hand hand = frame.GetHand(i);
            Vector3 fingertip = hand.GetLandmark(HandLandmarkId.IndexTip).WorldPosition;
            Debug.DrawRay(fingertip, Vector3.up * 0.05f, Color.cyan);
        }
    }
}

Two rules worth knowing before you write more than this:

  • HandFrame and Hand are pooled and reused. They are valid until the next OnHandsUpdated. Copy what you need — Hand.CopyTo, or the Landmark structs, which are value types. That reuse is what buys the zero-allocation-per-frame guarantee.
  • New results are not new rendered frames. CurrentFrame repeats between inferences; HandFrame.FrameId changes when a genuinely new result arrives. Anything that accumulates over time — a dwell, a debounce, a smoothing window — should advance on FrameId, not on Update ticks. The id is monotonic for the life of the tracking session, so id > _last keeps working across a pause and resume — a background cycle stops it changing, it never rewinds.

9. Build to a phone (optional)

  1. Run the Setup Wizard again with the Android or iOS build target selected, and press Fix All. That is what writes the iOS camera usage description and checks the Android graphics API list.
  2. Add the sample scene to Build Settings and build. Nothing in the scene changes.
  3. Grant the camera prompt on first launch. Deny it and the app says "Tracking failed: CameraPermissionDenied" with advice, rather than crashing or showing a black screen.
  4. Rotate the device while tracking. The image and the skeleton rotate together — orientation is handled inside the camera source, and hands stay correctly labelled in all four orientations.

The Landmark Visualizer tracking a hand on Android, portrait

The same device in landscape, hand tracked


Where to go next