Getting Started
This guide takes you from a new Unity project through SDK installation and the Basic Example sample until you feel your first vibration from a Hapbeat device.
For adding the SDK to an existing project, see Integrating into Your Project.
Prerequisites
Section titled “Prerequisites”- Hapbeat is connected to the same Wi-Fi LAN as the PC running Unity.
0. Install Unity Editor
Section titled “0. Install Unity Editor”Skip this step if a supported version of the Editor is already installed.
Supported versions: Unity 2022.3 LTS or later (verified: Unity 6.3 LTS 6000.3.15f1)
Install a supported version from Unity Hub.
Create a new project
Section titled “Create a new project”Unity Hub → New project → any template (e.g. 3D (Core)).
The SDK is render-pipeline-agnostic, so URP, HDRP, and Built-in all work.
Install git
Section titled “Install git”UPM requires git to fetch packages via Git URL.
Install it from git-scm.com and confirm it is on your PATH (git --version should work in a terminal).
1. Install the SDK and import samples
Section titled “1. Install the SDK and import samples”- Unity Editor:
Window → Package Manager - Click
+in the top-left →Install package from git URL... - Paste the following URL and click Install:
https://github.com/Hapbeat/hapbeat-unity-sdk.git- Once import is complete, with Hapbeat SDK still selected in Package Manager, open the Samples tab in the right panel and Import the following:
| Sample | Recommended | Contents |
|---|---|---|
| Basic Example | Required | Minimal sample used in this tutorial (keyboard-driven event firing) |
| Showcase | Strongly recommended (optional) | An implementation catalog covering haptic wiring patterns across 5 zones in a single scene. Highly useful as a reference when integrating — import it alongside Basic Example |
The full sample set (Scene / EventMap / Kit) is placed under Assets/HapbeatSDK/SDK_Samples/ and is ready to Play immediately. After import, the Hapbeat menu appears in the menu bar.
For version pinning, updates, and troubleshooting, see Installation Requirements.
2. Play and confirm vibration (Stream)
Section titled “2. Play and confirm vibration (Stream)”Open Assets/HapbeatSDK/SDK_Samples/BasicExample/Scenes/BasicExample.unity and press Play (the scene, EventMap, and Kit are all included in the sample — no extra setup required).
An on-screen key guide is displayed:
| Key | Action |
|---|---|
| Space | CLIP (Stream) one-shot — 100 Hz sine wave, 1 second |
| R | CLIP (Stream) loop — 100 Hz sine wave, looping |
| F | FIRE (Command) — 200 Hz sine wave (Kit required, see below) |
| S | Stop all |
| C | Ping |
If Space causes the device to vibrate, the SDK ↔ device communication is established.
If the UI shows
Pong: RTT=...ms, communication is working. If not, check that the device is online.
Stream mode (Space / R) sends PCM data to the device in real time — no Kit needs to be installed on the device side.
F key produces no response — this is expected. Command mode does not work until a Kit is installed on the device. The next step covers this.
3. Inspect the EventMap
Section titled “3. Inspect the EventMap”Open the menu bar → Hapbeat → Open Event Map.
EventMap is the window that manages the list of haptic events the SDK fires and their settings. BasicExample has 3 entries registered:
| Event ID | Mode | Trigger key |
|---|---|---|
| basic-exam-kit.sine_100hz_1s | StreamClip | Space |
| basic-exam-kit.sine_100hz_1s_loop | StreamClip | R |
| basic-exam-kit.sine_200hz_1s | Fire (Command) | F |
Press the ▶ button (Test Play) at the right end of each entry to fire directly to the device from the Editor without entering Play mode.
EventMap details: EventMap Window
4. Deploy a Kit from Studio to enable FIRE
Section titled “4. Deploy a Kit from Studio to enable FIRE”To use Command mode (F key), install basic-exam-kit on the device. Deploying from Studio requires hapbeat-helper (see Initial Setup).
- Open Hapbeat Studio (
https://studio.hapbeat.com/) - Kit tab (right side) → select a folder (“Open Folder”) and point it at
Assets/HapbeatSDK/SDK_Samples/BasicExample/Kit/in your Unity project - Select
basic-exam-kitfrom the list - Confirm a device is selected (top-right of the page) → click Deploy
After deployment is complete, go back to Unity Play mode and press F — the device vibrates (200 Hz sine wave).
Next steps
Section titled “Next steps”- Integrating into Your Project — How to add the SDK to your own scene, plus the Showcase sample walkthrough
- Trigger Components — Collision / Sequence / UnityEvent / TickEmitter / StateBehaviour
- EventMap Window — Manage Event ID ↔ waveform mappings in a GUI
- Parameter Binding — Dynamically map game state to gain / pan