Sample scenes
Five scenes ship inside the package, under
Assets/Calium/VisionKit/Samples/. Each one opens and runs with nothing assigned,
installed, dragged or configured — that is a rule the samples are tested against, not a
figure of speech. Every sample's scripts compile against the public API only; none of them
reaches into the package's internals, so anything a sample does, your code can do.
| Scene | Path | What it is for |
|---|---|---|
| Landmark Visualizer | LandmarkVisualizer/Landmark Visualizer.unity |
See that it works. The camera feed with the skeleton drawn on it. |
| Gesture UI | GestureUI/Gesture UI.unity |
The zero-code path. All seven gestures, both hands, wired entirely in the inspector. |
| Pinch To Drag | PinchToDrag/Pinch To Drag.unity |
The scripting path. Continuous pinch, a stable grip, and both world-mapping modes. |
| Virtual Buttons | VirtualButtons/Virtual Buttons.unity |
Touchless UI. Dwell-to-press, with the anti-repeat rules a real one needs. |
| Mini Game | MiniGame/Mini Game.unity |
The showcase. A two-minute gesture game that uses most of the kit at once. |
Landmark Visualizer
The camera image with a 21-point skeleton drawn on each tracked hand: joints on knuckles and
fingertips, one colour per finger, a Left/Right label and a confidence percentage above
each hand, and the performance overlay in the corner.
Read it for: how to draw landmarks over a live feed and keep the two aligned. The hard part of that is not the drawing, it is the display transform — the feed and the landmarks have to agree about rotation and mirroring, and this sample's automated tests check that agreement across all eight rotation-and-mirror combinations.
It also carries the failure-state text. Camera busy, permission denied, models missing: each becomes a sentence on screen with advice under it rather than a black screen.
Gesture UI
A board of seven gesture rows with a Left and a Right lamp on each. Hold a pose and the lamp for that gesture, in the column for the hand you used, lights up.
Read it for: the zero-code path. There is genuinely no gesture code in this sample. Each
lamp is a GestureEventListener whose Gesture is one of the shipped definitions, whose
Required Handedness is Left or Right, and whose two UnityEvents call the lamp beside
it. Fourteen of them, all wired in the inspector. Its runtime assembly does not reference
any part of Calium Vision at all — which is the point being made.
It is also the quickest way to see two rules of the gesture system in action: at most one gesture per hand is active at a time, and every start eventually gets its end (drop your hand out of frame mid-pose and the lamp goes out on its own).
Pinch To Drag
Three cubes, a cursor sphere between your thumb and index fingertips, and a pinch that picks a cube up and puts it down.
Read it for: the scripting path, and specifically two things that are easy to get wrong.
Hand.PinchStrengthis continuous, normalized by hand size so it does not change with distance from the camera. The sphere brightens and shrinks as the value climbs.- A grip needs hysteresis, and the hysteresis has to be counted in tracking results. A grab that takes and releases on one threshold chatters. This sample takes at one value and releases at a lower one, and — the part worth copying — it advances that state machine on new tracking results rather than on rendered frames, because rendered frames repeat between inferences.
It also has a runtime switch between the two WorldMappingMode values, driven by two
configuration assets that are copies of the bundled default differing in exactly one field.
That is the recommended way to vary settings: duplicate the config asset, change the field,
assign it. Switching restarts the camera, and the panel says so before it happens.
Virtual Buttons
Four buttons; hold a fingertip on one and a bar fills; when it fills, the button toggles, clicks, and (on a phone) buzzes.
Read it for: touchless UI rules that are not obvious until a user finds them.
- A dwell that fires once and then latches, so holding still does not machine-gun.
- Leaving is what re-arms a press — you have to move off and back on.
- A sweep across the buttons must press nothing.
- Progress belongs to the hand: take the hand out of frame and the bar empties.
- The dwell is banked in seconds of confirmed tracking results, so it takes the same wall-clock time on a 144 Hz desktop and a 24 fps phone.
Mini Game
Gesture Rush: twenty prompts, four gestures, both hands, a draining bar per prompt, a score, a combo multiplier, and a round-complete card. It starts on an open palm and restarts on one.
Read it for: what a whole interaction loop looks like on top of this package — prompts that name a hand, prompts that need both hands at once, timing that is fair, and the state handling around the moments a tracker is not delivering. If you take one idea from it, take this one: the countdown only spends time it can prove it had. When both hands leave the frame the round pauses and says so; when the tracker stalls it says "Waiting for the tracker to catch up…" rather than counting the delay against the player.
It is also the scene the promotional video is shot in.