(Page in Development)

New Unity input system

Importing the DigiClap SDK Package

  1. Open your Unity project.
  2. In the Project window, right-click anywhere inside the Assets area.
  3. From the context menu, select Import Package → Custom Package…
  1. In the file browser, locate and select the DigiClapSDK .unitypackage file.
  1. 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.
  2. Click Import to complete the installation.

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 .
  1. In the Binding Path selector, navigate to Other > DigiClap Gestures
  1. Choose the desired gesture.
  1. To Use DigiClap with Composite Bindings:
    1. Click the + button and click on Add Up/Down/Left/Right Composite
  1.  Assign each direction by doing steps 4.2 – 4.3
  1. Save the Input Actions asset.

DigiClap Gestures Overview

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

GestureDescription
UpUpward gesture
DownDownward gesture
LeftLeftward gesture
RightRightward gesture
OKConfirm / selection gesture