New Unity input system

Importing the DigiClap SDK Package

  1. Open your Unity project.
  2. If you have a previous version of the DigiClap SDK in the project, delete the DigiClap folder first.
  3. In the Project window, right-click anywhere inside the Assets area.
  4. From the context menu, select Import Package → Custom Package…
  5. In the file browser, locate and select the latest version of the DigiClapSDK .unitypackage file.
  6. The Import Unity Package window will appear, displaying all files included in the SDK:
    1. Core SDK files are required.
    2. The Example folder is optional and may be imported only if you want the sample scenes, prefabs, and scripts to help you get started.
  7. Click Import to complete the installation.

Adding MEC dependency

More Effective Coroutines [FREE] | Animation Tools | Unity Asset Store


Importing the BLE Plugin

  1. The project will now show a few errors that the BluetoothLEHardwareInterface is missing.
  2. The Bluetooth package may be obtained from https://www.shatalmic.com/shatalmic-llc/bluetooth-le-unity-asset
  3. This is a paid asset. Use the contact form on the website here to get a complementary license key.


Adding the DigiClap Manager Prefab

To enable DigiClap device detection and gesture input, the DigiClap manager prefab must be added to the scene.

  1. In the Project window, navigate to: DigiClap/DigiclapSDK/SDK/Prefabs
  2. Locate the DigiClap.prefab
  3. Drag and drop the prefab into your active scene hierarchy.

Configuring Controls Using Unity’s New Input System

  1. Open your project’s existing Input Actions asset or create a new Input Actions asset if one has not already been configured.
  2. Create or select an Action Map.
  3. Add or select an Action you want to trigger using DigiClap.
  4. To Bind an Action to a DigiClap Gesture
    1. Click the + button and click on Add Binding.
    2. In the Binding Path selector, navigate to Other > DigiClap Gestures.
    3. Choose the desired gesture.
  1. To Use DigiClap with Composite Bindings:
    1. Click the + button and click on Add Up/Down/Left/Right Composite
    2. Assign each direction by doing steps 4.2 and 4.3


  1. Save the Input Actions asset.

Setting up the DigiClap UI

The DigiClap SDK includes a ready-made setup UI, DigiClapUIManager, that walks players through connecting, setting up and calibrating the glove. It is designed not to block your game: in a live build, nothing appears until a glove has connected.

If you would rather build your own UI or integrate with your project’s existing UI manager, subscribe to DigiClapSDK.OnSDKStateChanged and monitor DigiClapSDK.Instance.CurrentSDKState to decide what to show.

To add the UI Manager to your scene:

  1. Drag the DigiClapUIManager prefab in path DigiClap/DigiclapSDK/SDK/Prefabs into your scene.
  2. Ensure that the Sort Order of the children’s canvases are higher than every canvas in your game, so the DigiClap screens always draw on top.
  3. Make sure the scene has an EventSystem using the Input System UI Input Module, so the buttons can be clicked.

What the player sees:

  1. While the SDK waits for the glove to be connected, nothing is shown.
  2. After connecting, if the player has no saved hand config, a Configure button appears at the bottom left. Tapping it opens the hand config screen, where the player enters measurements and hand orientation.


  3. The config is saved, so returning players can skip this step. When config data already exists, at the bottom left you will have the Delete Config button. Pressing it will delete the previous configuration and go back to the previous step.
  4. Once the model loads, the calibration process starts automatically. The SDK collects sensor frames to work out each sensor’s offset, and a progress bar fills as it goes. The player will be given instructions to hold their hand still and then rotate their hand, with calibration restarting in case of failure.
  5. When calibration finishes, gestures are live and trigger your Actions. Three options are available:
    1. Remap opens the gesture remap screen.
    2. Delete Config which removes the saved hand config.
    3. Toggle Gestures shows or hides a live readout of the detected gesture, useful for testing.

Remapping gestures

The Gesture Remapping screen lets players swap one hand gesture for another. A remap replaces the gesture everywhere; if Fist is remapped to YawLeft, performing YawLeft triggers every Action bound to Fist, and Fist does nothing until the remap is reset. Unity’s built-in rebinding also works with DigiClap bindings, but it changes one Action at a time rather than swapping the gesture itself.

Using the remap screen:

  1. Click Remap to open the Gesture Remapping screen.
  2. Find the gesture you want to replace. The screen only lists gestures your game has bound to an Action.
  3. Open the dropdown on the right of that row and choose the gesture you would rather perform. Unchanged rows show (Default).
  4. Click Save & Proceed to save the remaps and close the screen.

To undo all remaps, click Reset Bindings. Every gesture goes back to its default.

Using an asset that isn’t project-wide

The SDK reads your bindings to work out which gestures the game uses. By default, it reads the project-wide actions.

If your bindings live in a different asset, select the DigiClap.prefab and drag that asset into Input Actions Override in the Inspector.

DigiClap Gestures Overview

DigiClap exposes gestures as input bindings that can be mapped to actions:

GestureDescription
ThumbOnly_1Extend only the thumb while keeping the other fingers closed.
IndexOnly_2Extend only the index finger while keeping the other fingers closed.
Fist_6Close all fingers into a fist.
YawRight_7Tilt the hand to the right while the index finger is extended.
YawLeft_8Tilt the hand to the left while the index finger is extended.
PitchUp_9Tilt the hand upwards while the index finger is extended.
PitchDown_10Tilt the hand downwards while the index finger is extended.
RollPos_11Rotate the hand clockwise while the index finger is extended.
RollNeg_12Rotate the hand counterclockwise while the index finger is extended.

One-time vs Continuous actions

A DigiClap gesture stays pressed for as long as the player holds it, and releases when the hand changes gesture or returns flat. That means one binding can drive either kind of action:

If you wantUse
Fire once per gestureperformed
Keep going when the gesture is heldIsPressed() in Update, or performed + canceled to toggle a flag

Legacy (Old) Input System Compatibility (Notes)

As of right now, DigiClap SDK supports Unity’s New Input System only.

The legacy input system does not support:

  • Custom input devices
  • Custom input buttons
  • Injecting or overriding input events

Because of this, DigiClap gestures cannot be mapped directly to the old Input.GetAxis / Input.GetButton workflow.If a project must remain on the legacy input system, the only supported approach is to use a virtual input abstraction.

This requires:

  • Implementing a DigiClap virtual input layer
  • Mapping DigiClap gestures to virtual buttons or axes

See Unity Standard Assets CrossPlatformInput, as reference which exposes virtual axes and buttons that can be driven programmatically: https://github.com/jamschutz/Unity-Standard-Assets/tree/master/Standard%20Assets/CrossPlatformInput