How microsoft/mixedrealitytoolkit-unity works
MRTK-Unity is a legacy Unity framework for cross-platform mixed-reality app development. Its principal workflow is that a Unity developer configures MRTK and a supported XR device/provider supplies input; MRTK exposes input and spatial-interaction building blocks for an app’s experience. The README also highlights in-editor simulation and replaceable core components. The supplied source excerpts cover only repository scripts, not the runtime implementation, so runtime links below are documented high-level relationships or marked unverified rather than inferred calls.
Main entry points: MRTK MRTK framework · InputSystem Input system · SpatialAwareness Spatial awareness · Definitions Toolkit profiles
Components 16
Framework Configuration
- MRTK framework
Assets/MRTK - Toolkit profiles
Assets/MRTK/Core/Definitions - Service configuration
Assets/MRTK/Core/Definitions/MixedRealityServiceConfiguration.cs
Input and Tracking
- Input system
Assets/MRTK/Core/Definitions/InputSystem - Device definitions
Assets/MRTK/Core/Definitions/Devices - Input events
Assets/MRTK/Core/EventDatum/Input - Hand tracking
Assets/MRTK/Core/Definitions/SpatialAwareness
Spatial Experience
- Spatial awareness
Assets/MRTK/Core/Definitions/SpatialAwareness - Boundary system
Assets/MRTK/Core/Definitions/BoundarySystem - Spatial queries
Assets/MRTK/Core/Definitions/Physics - Spatial UI building blocks
Assets/MRTK
Platform Integration
- Editor simulation
Assets/MRTK - Device support
Assets/XR
Other components
- Unity developer
- Unity app
- XR providers
Connections 16
- Unity developer → Unity app: develops in
README.md - Unity developer → MRTK framework: uses
README.md - MRTK framework → Toolkit profiles: configurable through
- Toolkit profiles → Service configuration: configures services
- XR providers → Device definitions: provides device input
- MRTK framework → Input system: provides input
README.md - Input system → Input events: dispatches events
- Input system → Device definitions: supports devices
- MRTK framework → Hand tracking: supports hand tracking
README.md - MRTK framework → Spatial awareness: provides spatial interaction
README.md - Spatial awareness → Boundary system: supports boundaries
- Spatial awareness → Spatial queries: supports spatial queries
- MRTK framework → Spatial UI building blocks: provides UI building blocks
README.md - Unity developer → Editor simulation: prototypes with
README.md - MRTK framework → Device support: supports XR platforms
README.md - Unity app → MRTK framework: integrates