MRTK, short for Mixed Reality Toolkit, is an open-source, cross-platform framework of components, interaction systems and user interface controls for building mixed reality and other extended reality applications, primarily in the Unity game engine. Within XR development, it sits above a runtime such as OpenXR and gives developers ready-made building blocks for hand interaction, gaze, speech and spatial UI, so that teams do not have to write these systems from scratch.
Microsoft created MRTK for HoloLens, and it later evolved into a device-agnostic toolkit used with several headsets. Its current generation, MRTK3, is published as modular Unity packages and is maintained in a community-governed open-source project.
How MRTK is structured
MRTK works as a layer of reusable components between the application logic and the platform runtime. The runtime reports head pose, hand joints and controller state; MRTK turns that raw data into interactors and interactables, so a developer can make an object grabbable, pressable or scrollable by adding components rather than writing input code.
In MRTK3, the toolkit is split into independent packages that a project imports as needed. The table lists the main package areas and their roles.
| Package area | Purpose | Typical use |
|---|---|---|
| Core | Shared definitions and subsystems | Required base for all packages |
| Input | Hands, controllers, gaze and speech | Unified input handling |
| Spatial manipulation | Move, rotate and scale objects | Bounds control, object manipulator |
| UX components | Buttons, sliders, dialogs, menus | Spatial user interfaces |
| Accessibility and diagnostics | Readability aids and performance data | Testing and inclusive design |
| Graphics tools | Shaders and visual feedback | Proximity lighting, rounded panels |
This modular design lets a project ship only the parts it actually uses, which reduces build size and avoids hidden dependencies that were common in earlier releases.
MRTK2 and MRTK3 compared
The two major generations of MRTK differ in architecture, and the difference matters when maintaining older projects. MRTK2 used its own profile-based configuration and input system, while MRTK3 rebuilt the toolkit on top of the Unity XR Interaction Toolkit and OpenXR.
| Aspect | MRTK2 | MRTK3 |
|---|---|---|
| Input foundation | Custom MRTK input system | Unity XR Interaction Toolkit |
| Platform layer | Several legacy plug-ins | OpenXR as the main path |
| Distribution | Large monolithic import | Modular Unity packages |
| Configuration | Nested profile assets | Standard Unity components |
| UI design system | Older HoloLens style | Refreshed, more consistent controls |
Migration from MRTK2 to MRTK3 is not a drop-in upgrade. Interaction scripts, profiles and many prefabs must be replaced, so teams usually migrate when they also move to a newer Unity version or a new target device.
How MRTK relates to other XR development tools
MRTK is often confused with the runtimes and SDKs it works with, but it occupies a distinct layer in the stack. OpenXR defines how an application talks to the device; AR Foundation handles mobile AR features; MRTK supplies interaction patterns and UI on top.
| Tool | Layer | Main contribution |
|---|---|---|
| OpenXR | Runtime standard | Device-neutral access to tracking and input |
| Unity XR Interaction Toolkit | Engine interaction framework | Generic interactors and locomotion |
| MRTK | Toolkit above XRI | Hand-first interactions and spatial UI |
| AR Foundation | Mobile AR abstraction | Planes, anchors and image tracking |
| Meta XR All-in-One SDK | Vendor SDK | Features specific to Meta devices |
Because MRTK3 builds on OpenXR, applications can target HoloLens 2, Meta Quest headsets, Magic Leap 2 and Windows desktop simulation with largely shared code, although platform-specific features still require vendor extensions.
A practical way to picture the stack is from bottom to top: the device runtime delivers tracking data through OpenXR, the XR Interaction Toolkit converts it into generic interactions, and MRTK adds hand-first behaviors such as poke, near grab and far ray selection with consistent visual feedback. Each layer can be replaced independently, which protects an application when a headset vendor changes its own SDK. MRTK also provides spatial awareness hooks for meshes and planes, but scene understanding itself comes from the platform, so the quality of room data still depends on the device.
When to use MRTK in a project
MRTK is most useful when an application relies on direct hand interaction and floating panels rather than on controller-heavy gameplay. Enterprise training, remote assistance, design review and data visualization are typical fits.
- Choose MRTK for hand-tracked productivity apps that must run on more than one headset.
- Prefer the plain Unity XR Interaction Toolkit for simple controller-based experiences.
- Prefer a vendor SDK when the app depends heavily on one platform’s exclusive features.
- Use the input simulator in the Unity editor to test hand interaction without wearing a headset.
Teams should pin package versions and confirm that their Unity version, the OpenXR plug-in and the target device runtime are supported together, because mismatches are the most common source of build errors.
Limitations and common pitfalls
MRTK saves time, but it brings its own complexity and performance costs. The table lists frequent problems with their causes and remedies.
| Problem | Likely cause | Remedy |
|---|---|---|
| Hands not detected | OpenXR hand feature disabled | Enable hand tracking in project settings |
| Low frame rate | Heavy shaders or too many colliders | Profile and simplify scene content |
| Mixed old and new prefabs | Partial MRTK2 to MRTK3 migration | Replace legacy components fully |
| Build fails after update | Incompatible package versions | Align packages with Feature Tool |
Developers should also remember that MRTK is Unity-focused. Unreal Engine users historically relied on separate tooling with a smaller feature set, so cross-engine parity should not be assumed.
The idea in brief
MRTK is a free box of ready-made parts for people who build apps for mixed reality headsets. Instead of inventing how a virtual button should react to a finger, a developer drops in an MRTK button that already works.
It is similar to using a kit of standard furniture rather than cutting every board yourself. The result is faster development and apps that behave in familiar ways on several different headsets.
A practical scenario
A medical device manufacturer wants to train hospital technicians to assemble an infusion pump using a hand-tracked holographic guide. The development team of four has three months and must support both HoloLens 2 units already owned by the training center and newer Meta Quest headsets purchased for remote sites.
The team builds the app in Unity with MRTK3 over OpenXR. Pump parts receive object manipulator components so trainees can pick them up and rotate them, while step-by-step instructions appear on MRTK panels with pressable buttons. Developers test most interactions in the editor with the input simulator before deploying to devices.
The project ships on time with one shared codebase for both headset families, and only a small amount of platform-specific code for pass-through and device settings. Later course updates require editing scenes, not rewriting interaction logic.