Microtube Docs
EN中文
Developers / Unreal / Tutorial walkthrough

Unreal tutorial project

Get the Unreal tutorial project, try the HexR Developer Demo and see how each level adds haptics.

Get the project

The Unreal tutorial project is HexR-Developer-Tutorial-Unreal (private preview: ask us for access). It is Unreal’s Virtual Reality template with HEXR added, set up for Meta Quest with passthrough.

  1. Add the plugin

    Get the project, then put the plugin in its Plugins folder: unzip the release there, or copy Plugins/HexR from HexR-Unreal. You should end up with Plugins/HexR/HexR.uplugin. A copy from the repository has no prebuilt binaries, so Unreal builds it when the project opens, and that needs Visual Studio.

  2. Open it in Unreal 5.8

    Open HexRTutorial.uproject and run Tools → HexR → Validate Project.... Every row is green but the minimum SDK: the project keeps 29 so that it also installs on a PICO 4.

  3. Try it in the editor

    Connect the gloves in Tools → HexR Tools, then press VR Preview with the headset on Quest Link. The gloves stay connected. Over Link the room doesn’t show, so you see a courtyard instead.

  4. Put it on the headset

    Package and install it as in Put the app on the headset. Put the controllers down and use your hands. The gloves connect when the app starts.

The HexR menu switches between the levels below. The VR Template’s own level is on it too, and its grabbable objects press the hand that holds them.

The Developer Demo

The project starts in L_DeveloperDemo, the HexR Developer Demo. It is the Unreal counterpart of the HEXR Sandbox, the demo app for the Unity package, built with Niagara, Blueprints and HEXR components. Four stations stand in an arc in front of you: in your own room on a Quest, or in a small courtyard on a PC.

The HexR Developer Demo: a torch on a table, a burning brazier, a stone fountain and a heart on a stand
The Developer Demo, as it looks on a PC. On a Quest, the stations stand in your own room.
StationWhat to doWhat you feelBuilt from
TorchGrab it by the handle with your palmEvery finger on it pressed while you hold it. Let go and it drops, then floats back to its standHexR Grabbable, HexR Return Home
BrazierTouch the flames, then dip the torch’s head in themThe fingers in the fire buzz. After half a second the torch catches; touch its flame too. Hold it in the fountain and it goes outHexR Fire
FountainPut a hand in the basin, then under the spoutA pulse on the way in, a soft swelling hold, a swish when you move. Under the spout, random drops on your fingers and a fizz in your palmHexR Water, Pool and Stream
HeartRest your hand on it or pick it up; press the buttonsLub-dub in your palm and fingertips: 72 BPM at rest, climbing to 150 when running, irregular in atrial fibrillationHexR Heartbeat, HexR Physical Button, HexR Grabbable

Its Blueprints are in Content/HexRTutorial/DeveloperDemo/Blueprints: BP_DemoTorch, BP_DemoBrazier, BP_DemoFountain and BP_DemoHeart. Open them to see how each is put together. The heart’s rhythm buttons are a three-node graph each. The project’s README explains how to rebuild the demo from the scripts in SourceArt.

The tutorial levels

Three smaller levels, built from the plugin’s example Blueprints.

1. Basic Tutorial

1_BasicTutorial: a cube, a button and a ball on a table.

The Basic Tutorial level: a cube, a red push button and a ball on a table, each with a label
Basic Tutorial: pinch to grab, press, squeeze.
ObjectBuilt fromWhat it does
CubeBP_HexR_GrabbableCube: HexR Grabbable, Pinch GrabPinch it to pick it up. Each finger on it is pressed
ButtonBP_HexR_PushButton: HexR Physical ButtonPress it with your index. The finger feels it while the button is down
BallBP_HexR_SqueezeBall: HexR Special Haptics, Hand Squeeze EffectClose your hand around it to fire On Squeezed, an event for your own logic

2. Hospital Tutorial

2_HospitalTutorial: a pulse, a syringe and a stress ball.

The Hospital Tutorial level: a red pulse sphere, a syringe-like can and a stress ball on a table
Hospital Tutorial: check the pulse, hold and squeeze, stress ball.
ObjectBuilt fromWhat it does
PulseBP_HexR_HeartBeat: HexR Special Haptics, Heart Beat EffectRest your fingertips on it to feel a pulse
SyringeBP_HexR_SprayCan: HexR UsableHold it and curl your fingers: On Used and On Stopped Using fire
Stress ballBP_HexR_SqueezeBall: HexR Special Haptics, Hand Squeeze EffectSqueeze it to fire On Squeezed

3. Water Effects

3_WaterEffects: a fountain and a rain cloud. Reach into them.

The Water Effects level: a fountain jet on a basin and a rain cloud above the table
Water Effects: touch the water, hold your palm up under the cloud.
ObjectBuilt fromWhat it does
FountainBP_HexR_Fountain: HexR Special Haptics, Fountain EffectPut your fingers in the stream: they vibrate as if under running water
Rain cloudBP_HexR_RainCloud: HexR Special Haptics, Rain Drop EffectHold your palm up under it to feel random drops

Build your own level

The same kind of level by hand, in about half an hour.

  1. Start the project

    In Unreal 5.8, create a project from the Virtual Reality template, or open your own project with a VR pawn.

  2. Add HEXR

    Install the plugin and set up the headset as in Project setup.

  3. Give the pawn hands

    Choose Tools → HexR → Add HexR Rig to Level, or add the components to the template’s pawn as in Add HEXR to an existing pawn.

  4. Add the objects

    Put the objects below on a table in front of the Player Start. Make each component’s box a little larger than the part a finger should feel. Show Touch Points on the tracked hands helps while you place them.

ObjectHow the haptics are addedWhat you feel
Foam blockA cube with Simulate Physics on, + HexR Grabbable, Palm Grab, Haptic Strength 20A soft press on each finger around it
KeyA small mesh with Simulate Physics on, + HexR Grabbable, Pinch Grab, Haptic Strength 40A firm pinch
ButtonHexR Physical Button, with Cap set to the button mesh. On Button Pressed toggles a lightA press on the index while it is down
FountainHexR Water, Mode Stream, Shape Cylinder, around the jetRandom drops on the fingers in the jet, a fizz in the palm
Pulse pointHexR Heartbeat, Rhythm HealthyLub-dub under the fingertips, 72 times a minute
Template cubeOne of the VR Template’s grabbable cubes, as it isPressure that follows how hard you squeeze

Three ways the levels add haptics

Next

Add haptics to your own objects: Haptics setup.