Requirements | Videos | View the Sample | Resources | Contact
MRTK-Unity is a Microsoft-driven project that provides a set of components and features, used to accelerate cross-platform MR app development in Unity.
The videos and sample in this repository provides an introductory lesson on the Spatial Awareness system. The Spatial Awareness system provides real-world environmental awareness in mixed reality applications.
- Windows 10
- Unity Version 2019.4.11f1
- MRTK Foundation Package 2.4.0
- Tools Installed for Windows Mixed Reality development
- Device
Videos are published on YouTube in the playlist: Made with MRTK: Spatial Awareness
Title | Description | Link |
---|---|---|
Spatial Awareness: Configure Unity for WMR Development | Learn how to setup your Unity environment for Windows Mixed Reality Development. | https://youtu.be/nrhBQlBP25k |
Spatial Awareness: Import MRTK into Unity | Learn how to import the Mixed Reality Toolkit into Unity and configure the project with the Mixed Reality Toolkit. | https://youtu.be/LBy6EZSrd50 |
Spatial Awareness: Enable Spatial Awareness System | Learn how to enable the MRTK Spatial Awareness system in Unity. | https://youtu.be/BhK4DHc_gZo |
Spatial Awareness: Add a Spatial Observer | Learn how to add a spatial observer to the configuration profile. | https://youtu.be/KJeDX6I0X-0 |
Spatial Awareness: Add Objects to Scene | Learn how to add objects to the scene. Also, learn how to add a button to make the objects active after mapping the environment with spatial mesh. | https://youtu.be/mOd-DVcjyu0 |
Spatial Awareness: Add Button to Hide Spatial Mesh | Learn how to add a button that hides the spatial mesh when pressed. | https://youtu.be/umQbFnkOEGg |
Spatial Awareness: Demo | View a demo of the project with a HoloLens 2. | https://youtu.be/raUiRM7QT6k |
- Install the required tools for Windows Mixed Reality development.
- Unzip the package.
- Create a new Unity project.
- Configure Unity for Windows Mixed Reality development.
- Import the Mixed Reality Toolkit Foundation package. After import, in the MRTK Project Configurator window, select MS HRTF Spatializer for the Spatializer Plugin. Next, apply the default settings in the MRTK Project Configurator. Finally, add MRTK to scene and configure.
- Open the sample_spatial_awareness scene (Project panel > Assets > Scenes > sample_spatial_awareness).
- Click the play button to enter play mode.
Note: To simulate hand input, press the spacebar (right hand) and/or the left shift key (left hand).
Mixed Reality Toolkit Repo: aka.ms/mrtk
Tools to Install for Windows Mixed Reality Development: aka.ms/install-the-tools
Set up a mixed reality project in Unity with the Mixed Reality Toolkit: aka.ms/learn-mrtk-unity
UX Guidance on Spatial Mesh: aka.ms/spatial-mesh
MRTK Spatial Awareness System: aka.ms/mrtk-spatial-awareness
MRTK Spatial Observer: aka.ms/mrtk-spatial-observers-code
Have a question or issue accessing a video or trying the sample? Submit an issue to the repo!