The Windows Mixed Reality platform provides a wide range of capabilities able to run under Windows 10 machines with a Mixed Reality headset and the HoloLens 1 / 2 devices.
To develop for the Windows Mixed Reality platform, you will need:
- A Windows 10 PC
- Visual Studio 2019 community edition or greater
- The Mixed Reality Portal, installed and running (for Mixed Reality Headset)
- The XRTK.SDK package installed (first)
- The XRTK.WindowsMixedReality package (once a Mixed Reality Scene has been setup)
It is advantageous to also have a Mixed Reality headset, however the Mixed Reality Portal also provides simulation capabilities for testing.
For HoloLens development:
- The development tools are now included with the Windows 10 SDKs
- (Optionally) if you do not have a device, you can install the HoloLens Emulator
- The Hololens Emulator guide also covers the necessary steps to deploy to a HoloLens Device (or simulator)
- For OpenVR on Windows Mixed Reality, you simply need to ensure that
OpenVR
is one of the configured platforms in the Unity legacy XR settings for theStandalone
platform - For Windows Mixed Reality on UWP, you simply need to ensure that
Windows Mixed Reality
is one of the configured platforms in the Unity legacy XR settings for theUWP
platform. This is also required for HoloLens development.
The following capabilities are currently available for the Windows Mixed Reality platform
- Headset Tracking
- Boundary tracking
- Windows Mixed Reality controllers (Windows 10 only)
- HoloLens Hands implementation (HoloLens 2 only)
- Spatial Awareness (HoloLens 1 & 2 only)
- Create a new Unity Project
- Switch to the
UWP
platform inBuild Settings
- Setup the Legacy XR settings in "Edit -> Project Settings -> Player -> XR Settings" for
Windows Mixed Reality
to theUWP
platform - Add the XRTK UPM registry to Unity by Opening the Unity Package Manager (
Window -> Package manager
), selecting theAdvanced
drop down and clicking onAdvanced Project Settings
, then Adding the following details:Name: XRTK
Scope(s): com.xrtk
- Return to the Unity Package manager and select
My Registries
in the Sources) dropdown (next to the+
symbol) - Select the
XRTK.SDK
and clickInstall
- Install the
XRTK.WindowsMixedReality
platform - When prompted, install the Windows Mixed Reality platform configuration in to your current project
- Close the Unity Package Manager and return to your scene
- Select or create the scene you want to create Mixed Reality Content in
- Select
Mixed Reality Toolkit -> Configure
in the Unity Menu. This will update your scene and add the MixedRealityToolkit instance. - Enable the
WindowsMixedReality
XR Loader in the XR SDK Manager
For Windows 10
- Ensure the Mixed Reality Portal is running before playing
- For builds, you will need to open the Visual Studio project and package the solution for Windows 10
For HoloLens 1 / 2
- Ensure you have correctly setup the Device portal on the device and it is accessible
- For builds, you will need to open the Visual Studio project and package the solution for HoloLens
If there is anything not mentioned in this document or you simply want to know more, raise an RFI (Request for Information) request here.