-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Moving your project from HoloToolkit 2017 to MixedRealityToolkit v2
| 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 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 the Mixed Reality Registered Services Profile.
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.
| HTK 2017 | MRTK v2 | Action Mapping |
|---|---|---|
| IControllerInputHandler | IMixedRealityInputHandler | Mapped to the touchpad or thumbstick |
| IControllerTouchpadHandler | IMixedRealityInputHandler | Mapped to the touchpad |
| IFocusable | IMixedRealityFocusHandler | |
| IGamePadHandler | IMixedRealitySourceStateHandler | |
| IHoldHandler | IMixedRealityGestureHandler | Mapped to hold in the Gestures Profile |
| IHoldHandler | IMixedRealityGestureHandler | |
| IInputClickHandler | IMixedRealityPointerHandler has a click | |
| IInputHandler | IMixedRealityInputHandler | Mapped to the controller’s buttons or hand tap |
| IManipulationHandler | IMixedRealityGestureHandler | Mapped to manipulation in the Gestures Profile |
| INavigationHandler | IMixedRealityGestureHandler | Mapped to navigation in the Gestures Profile |
| IPointerSpecificFocusable | IMixedRealityFocusChangedHandler | |
| ISelectHandler | IMixedRealityInputHandler | Mapped to trigger position |
| ISourcePositionHandler | IMixedRealityInputHandler or IMixedRealityInputHandler | Mapped to pointer position or grip position |
| ISourceRotationHandler | IMixedRealityInputHandler or IMixedRealityInputHandler | Mapped to pointer position or grip position |
| ISourceStateHandler | IMixedRealitySourceStateHandler | |
| IXboxControllerHandler | IMixedRealityInputHandler and IMixedRealityInputHandler | Mapped to the various controller buttons and thumbsticks |
| 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 > Configure. |
| Configuration | Camera settings configuration performed on prefab instance. | Camera settings configured in Mixed Reality Camera Profile. |
| HTK 2017 | MRTK v2 | |
|---|---|---|
| Setup | Add a SpeechInputSource to your scene. | Keyword service (e.g., Windows Speech Input Manager) must be added to the Mixed Reality Registered Services Profile. |
| Configuration | Recognized keywords are configured in the SpeechInputSource’s inspector. | Keywords are configured in the Mixed Reality Speech Commands Profile. |
| Event handlers | ISpeechHandler | IMixedRealitySpeechHandler |
| HTK 2017 | MRTK v2 | |
|---|---|---|
| Setup | Add a DictationInputManager to your scene. | Dictation support requires service (e.g., Windows Dictation Input Manager) to be added to the Mixed Reality Registered Services Profile. |
| Event handlers | IDictationHandler | IMixedRealityDictationHandler |
| HTK 2017 | MRTK v2 | |
|---|---|---|
| Setup | Add the SpatialMapping prefab to the scene. | Enable the Spatial Awareness System in the Configuration Profile and add a spatial observer (e.g., Windows Mixed Reality Spatial Mesh Observer) to the Registered Services Profile. |
| Configuration | Configure the scene instance in the inspector. | Configure the settings on each spatial observer's profile. |
| HTK 2017 | MRTK v2 | |
|---|---|---|
| Setup | Use the SurfaceMeshesToPlanes script. | Not yet implemented. |
| 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. |
| 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. |
| HTK 2017 | MRTK v2 | |
|---|---|---|
| Setup | Sharing service: Add Sharing prefab to the scene. UNet: Use SharingWithUNET example. | In-progress in GitHub feature branch (feature/mrtk_sharing) |
| Configuration | Configure the scene instances in the inspector. | In-progress in GitHub feature branch (feature/mrtk_sharing) |
Solvers are configured and should behave the same way as the HoloToolkit.
Some Utilities have been reconciled as duplicates with the Solver system. Please file an issue if any of your needed scripts are missing.
Object collections are configured and should behave the same way as the HoloToolkit.
Project Management
Contributing