MRTK

Also known as: Mixed Reality Toolkit

On this page 7

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 areaPurposeTypical use
CoreShared definitions and subsystemsRequired base for all packages
InputHands, controllers, gaze and speechUnified input handling
Spatial manipulationMove, rotate and scale objectsBounds control, object manipulator
UX componentsButtons, sliders, dialogs, menusSpatial user interfaces
Accessibility and diagnosticsReadability aids and performance dataTesting and inclusive design
Graphics toolsShaders and visual feedbackProximity lighting, rounded panels
Main MRTK3 package areas

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.

AspectMRTK2MRTK3
Input foundationCustom MRTK input systemUnity XR Interaction Toolkit
Platform layerSeveral legacy plug-insOpenXR as the main path
DistributionLarge monolithic importModular Unity packages
ConfigurationNested profile assetsStandard Unity components
UI design systemOlder HoloLens styleRefreshed, more consistent controls
Differences between MRTK2 and MRTK3

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.

ToolLayerMain contribution
OpenXRRuntime standardDevice-neutral access to tracking and input
Unity XR Interaction ToolkitEngine interaction frameworkGeneric interactors and locomotion
MRTKToolkit above XRIHand-first interactions and spatial UI
AR FoundationMobile AR abstractionPlanes, anchors and image tracking
Meta XR All-in-One SDKVendor SDKFeatures specific to Meta devices
MRTK among neighboring XR tools

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.

ProblemLikely causeRemedy
Hands not detectedOpenXR hand feature disabledEnable hand tracking in project settings
Low frame rateHeavy shaders or too many collidersProfile and simplify scene content
Mixed old and new prefabsPartial MRTK2 to MRTK3 migrationReplace legacy components fully
Build fails after updateIncompatible package versionsAlign packages with Feature Tool
Common MRTK problems

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.