Unreal pawn & hands setup
Give your VR pawn tracked hands, connect the gloves and put the app on the headset.
What a HEXR pawn needs
Three components. Your VR pawn carries them; Tools → HexR → Add HexR Rig to Level brings a pawn that has them all.
| Component | What it does | How many |
|---|---|---|
| HexR Tracked Hand | Follows the headset’s hand tracking and moves six touch points with it: one on each fingertip and one on the palm. A haptic fires when a touch point enters a HEXR component. It also measures how curled each finger is | One per hand. In the Details panel, set Hand to Left on one and Right on the other |
| HexR Pressure Controller | Every haptic for its hand goes through it. It also holds the hand-near check | One per hand, with Hand set to match |
| HexR Recenter (optional) | Brings the wearer back to where the level started them, without resetting the tracking origin | One |
The gloves belong to the engine, not the level. They stay connected when a level loads and, in the editor, between Play sessions.
Build a new level
Add the HexR rig
Choose Tools → HexR → Add HexR Rig to Level. It places BP_HexRRig at the Player Start and makes it the pawn the player gets. Other pawns stop auto-possessing; Undo puts them back.
Add the HexR menu
Choose Tools → HexR → Add HexR Menu for the panel that connects the gloves in the headset (below).
Validate
Run Tools → HexR → Validate Project.... Its last rows check the open level.
Connect a glove
In the editor, connect from Tools → HexR Tools, then press VR Preview: the gloves stay connected. On the headset, press the glove’s button on the HexR menu.
Check: select BP_HexRRig in the Outliner and tick Show Touch Points in the Details panel. In VR Preview, a marker follows each fingertip and your palm.
Add HEXR to an existing pawn
To keep a pawn you already have, such as the VR Template’s BP_XRPawn:
Add the components
Open the pawn’s Blueprint. In the Components panel, press Add and add two HexR Tracked Hand and two HexR Pressure Controller components.
Set the hands
In the Details panel, set Hand to Left on one of each and Right on the other.
Connect the gloves
Tick Connect Gloves on Start in Project Settings → Plugins → HexR, or connect from Blueprint (below). Add the menu with Tools → HexR → Add HexR Menu.
Keep your grabs
The VR Template’s grabbable objects already press the hand that holds them. See VR Template grabs.
Seeing your hands
The HexR Tracked Hand draws the hand itself, as joints and bones, so you see your hands with nothing else added. If you use your own hand meshes, or the ones your template shows, untick Show Hand on each HexR Tracked Hand.
To see where the touch points sit, tick Show Touch Points. Tip Radius, Tip Offsets, Palm Size and Palm Offset change their size and place, in centimetres.
The HexR menu
The panel that floats in the headset. Its main job is connecting the gloves. It stays where the level puts it. Press its buttons with either index fingertip, and the glove taps that finger. To move it, pinch the HEXR MENU header and move your hand.
| On the menu | What it does |
|---|---|
| GLOVES: a button per glove | Shows what the glove is doing. Press it to connect, and again to disconnect |
| Search nearby, Forget gloves | List the HEXR gloves in range to pick one, or forget the gloves this headset remembers |
| VIEW: Show Colliders | Draws the touch points on your hands |
| Recenter | Brings you back to where the level started you |
| HAPTICS | Shows live what each channel of each glove was last sent |
| SCENES | Switches between the levels in Menu Scenes |
| DEMOS, DEMO: Restart | Your own buttons, and a button that restarts the level |
On the menu actor, in the Details panel:
- Panel Width sets its size.
- Demos adds your own buttons; the On Demo event says which was pressed.
- Show Restart adds the Restart button.
- Follow Wearer brings it in front of the wearer and glides it back when they turn away.
From Blueprint, Toggle Menu, Set Menu Visible and Summon show and move it. The console command HexR.Menu shows or hides it.
Connect the gloves
Switch the glove on, then connect from your app. Don’t pair it in the headset’s Bluetooth settings. Pick one way:
- The HexR menu (above).
- No code: tick Connect Gloves on Begin Play on the HexR rig, or Connect Gloves on Start in Project Settings → Plugins → HexR for any pawn.
- The HexR Companion phone app, through HexR Remote.
- Blueprint: on Event BeginPlay, add Get HexRSubsystem, then Get Manager, then Connect Hand, once with Left and once with Right. To show the state, use Bind Event to On Glove Connected and Bind Event to On Glove Disconnected on the manager.
- C++: as below.
#include "HexRSubsystem.h"
#include "HexRManager.h"
// In your pawn (or game mode). The gloves belong to the engine, not the level,
// so they stay connected when a level loads.
void AMyPawn::BeginPlay()
{
Super::BeginPlay();
UHexRSubsystem* HexR = UHexRSubsystem::Get(this);
UHexRManager* Manager = HexR ? HexR->GetManager() : nullptr;
if (!Manager) return;
Manager->OnGloveConnected.AddDynamic(this, &AMyPawn::OnGloveConnected); // a UFUNCTION(EHexRHand Hand)
// Asks for the Bluetooth permission first where the headset needs it.
// Does nothing for a glove that is already connected or connecting.
Manager->ConnectHand(EHexRHand::Left);
Manager->ConnectHand(EHexRHand::Right);
}A glove that drops reconnects by itself, retrying for up to a minute. Before a glove disconnects, and when play ends or the app pauses or quits, HEXR releases every channel, so nothing stays pressed. Toggle Hand does what the menu’s glove button does: connect, cancel a connect in progress, or disconnect.
Put the app on the headset
Package the app, then install it. The headset needs developer mode first.
Turn on developer mode
Once per headset.
| Headset | How |
|---|---|
| Meta Quest | In the Meta Horizon app on your phone, open your headset’s settings and turn on Developer Mode. Meta may ask you to set up a free developer account first |
| PICO | On the headset, go to Settings → General → About and tap the software version until developer options appear. Then turn on Settings → Developer → USB Debugging |
Then plug the headset into your computer and accept the Allow USB debugging prompt inside the headset.
Package and install
Package
Choose Platforms → Android → Package Project and pick a folder. Unreal writes the APK there, with the game’s data in a separate
.obbfile.Install
With the headset plugged in, run the
Install_….batfile Unreal wrote beside the APK. It installs the APK and copies the data file across.
Installing the APK alone, with adb install, SideQuest or Meta Quest Developer Hub, leaves the data file behind. To use those tools, tick Package game data inside .apk? in Project Settings → Platforms → Android first:
adb install -r YourApp.apkFinding it on the headset: installed apps don’t sit with your store apps. On Quest, open the app library and choose Unknown Sources. On PICO, look in the Library’s unknown-sources filter.
Allow Bluetooth on the headset
The first time the app connects a glove, the headset asks for permission to use Bluetooth. Allow it. If it is refused, the app keeps running but never finds the glove. HEXR asks for it for you.
| Headset | The permission is called | Refused it? Turn it on under |
|---|---|---|
| Meta Quest 2, 3, 3S, Pro | Nearby devices | Settings → Privacy and Security → App Permissions, then restart the app |
| PICO 4 | Location, with the headset’s Location switch on | Settings → Apps, your app, Permissions, then restart the app |
| PICO 4 Ultra, and other headsets on Android 12 or later | Nearby devices | Settings → Apps, your app, Permissions, then restart the app |
Check this permission first, before the glove or your project.
If a glove won’t connect
- Nothing is found: check the permission above, then that the arm module is on and charged.
- It is found but won’t connect: a glove connects to one device at a time. Close the HexR Companion app and other HEXR apps on nearby phones and PCs.
- You paired it: if you paired the glove in the headset’s or Windows’ Bluetooth settings, forget it there. HEXR connects by itself.
- It finds the wrong glove: press Forget gloves on the HexR menu, then connect again.
- To see what happened: run
HexR.Statusin the console. For every connection step in the log, tick Verbose Bluetooth in Project Settings → Plugins → HexR.
Make things felt: Haptics setup.