Skip to content
EN

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.

  • Hapbeat is connected to the same Wi-Fi LAN as the PC running Unity.

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.

Unity Hub → New project → any template (e.g. 3D (Core)). The SDK is render-pipeline-agnostic, so URP, HDRP, and Built-in all work.

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. Unity Editor: Window → Package Manager
  2. Click + in the top-left → Install package from git URL...
  3. Paste the following URL and click Install:
https://github.com/Hapbeat/hapbeat-unity-sdk.git
  1. Once import is complete, with Hapbeat SDK still selected in Package Manager, open the Samples tab in the right panel and Import the following:
SampleRecommendedContents
Basic ExampleRequiredMinimal sample used in this tutorial (keyboard-driven event firing)
ShowcaseStrongly 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.

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:

KeyAction
SpaceCLIP (Stream) one-shot — 100 Hz sine wave, 1 second
RCLIP (Stream) loop — 100 Hz sine wave, looping
FFIRE (Command) — 200 Hz sine wave (Kit required, see below)
SStop all
CPing

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.

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 IDModeTrigger key
basic-exam-kit.sine_100hz_1sStreamClipSpace
basic-exam-kit.sine_100hz_1s_loopStreamClipR
basic-exam-kit.sine_200hz_1sFire (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).

  1. Open Hapbeat Studio (https://studio.hapbeat.com/)
  2. Kit tab (right side) → select a folder (“Open Folder”) and point it at Assets/HapbeatSDK/SDK_Samples/BasicExample/Kit/ in your Unity project
  3. Select basic-exam-kit from the list
  4. 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).