A guide to help you with migration from HoloLens Toolkit (HTK) to Mixed Reality Toolkit (MRTK).
Controller and hand input
Setup and configuration
Methods
HTK 2017
MRTK v2
Type
Specific events for buttons, with input type info when relevant.
Action / Gesture based input, passed along via events.
Setup
Place the InputManager in the scene.
Enable the input system in the Configuration Profile and specify a concrete input system type.
Configuration
Configured in the Inspector, on each individual script in the scene.
Configured via the Mixed Reality Input System Profile and its related profile, listed below.
Related profiles:
Mixed Reality Controller Mapping Profile
Mixed Reality Controller Visualization Profile
Mixed Reality Gestures Profile
Mixed Reality Input Actions Profile
Mixed Reality Input Action Rules Profile
Mixed Reality Pointer Profile
Gaze Provider settings are modified on the Main Camera object in the scene.
Platform support components (e.g., Windows Mixed Reality Device Manager) must be added to their corresponding service's data providers.
Interface and event mappings
Some events no longer have unique events and now contain a MixedRealityInputAction. These actions are specified in the Input Actions profile and mapped to specific controllers and platforms in the Controller Mapping profile. Events like OnInputDown should now check the MixedRealityInputAction type.
Mapped to the various controller buttons and thumbsticks
Camera
Methods
HTK 2017
MRTK v2
Setup
Delete MainCamera, add MixedRealityCameraParent / MixedRealityCamera / HoloLensCamera prefab to scene or use Mixed Reality Toolkit > Configure > Apply Mixed Reality Scene Settings menu item.
MainCamera parented under MixedRealityPlayspace via Mixed Reality Toolkit > Add to Scene and Configure...
Configuration
Camera settings configuration performed on prefab instance.
Enable the Spatial Awareness System in the Configuration Profile and add a spatial observer (e.g., Windows Mixed Reality Spatial Mesh Observer) to the Spatial Awareness System's data providers.
Configuration
Configure the scene instance in the inspector.
Configure the settings on each spatial observer's profile.
Planes
Methods
HTK 2017
MRTK v2
Setup
Use the SurfaceMeshesToPlanes script.
Not yet implemented.
Spatial understanding
Methods
HTK 2017
MRTK v2
Setup
Add the SpatialUnderstanding prefab to the scene.
Not yet implemented.
Configuration
Configure the scene instance in the inspector.
Not yet implemented.
Boundary
Methods
HTK 2017
MRTK v2
Setup
Add the BoundaryManager script to the scene.
Enable the Boundary System in the Configuration Profile.
Configuration
Configure the scene instance in the inspector.
Configure the settings in the Boundary Visualization profile.
Sharing
Methods
HTK 2017
MRTK v2
Setup
Sharing service: Add Sharing prefab to the scene. UNet: Use SharingWithUNET example.