Set up Microsoft Mixed Reality Toolkit 2 for Hololight Stream for Unity

Set up Microsoft Mixed Reality Toolkit 2

Hololight Stream works together with Microsoft Mixed Reality Toolkit 2 (MRTK2) to make more immersive mixed-reality experiences. Follow the instructions below to add MRTK2 to your Unity project.

  1. Go to the Microsoft Mixed Reality Toolkit git project.

  2. Follow the instructions to download and install MRTK2. Hololight Stream supports MRTK2 version 2.8.3.

Install Hololight Stream Extension for MRTK2

Hololight Stream Extension for MRTK2 provides XR functionality for inputs and other features that makes using MRTK2 with Hololight Stream possible.

MRTK2 will not work with Hololight Stream without the Hololight Stream Extension for MRTK2.
  1. Select Window > Package Manager.

  2. In the Package Manger, select + > Add package from tarball.

  3. Find the Hololight Stream repository and open the "Packages" folder. Select the file "com.hololight.stream.mrtk-<version>.tgz" where <version> is the current version of Hololight Stream.

Configure the scene

With MRTK installed in your Unity project, select Hololight > Stream > Configure MRTK, to configure the scene.

Check configuration

After you configure your project and scene, select MixedRealityToolkit in the Hierarchy and check the following settings:

  1. Select Camera > Camera Settings Providers. Make sure XR SDK Camera Settings is one of the providers.

  2. Select Input > Input Data Providers. Make sure that you have what input providers you want. These can include:

    • Hololight Stream Device Manager

    • Hololight Stream Touch Device Manager

    • Hololight Stream Dictation Input

    • Hololight Stream Speech Input

    • Hand Joint service

Configure gaze

Some features are not enabled through scene configuration. The reason for this, is that gaze can conflict with other inputs. You will need to enable eye gaze functionality manually if you need this feature.

  1. Select MixedRealityToolkit in the Hierarchy.

  2. Select Input in the Inspector.

  3. Under Input Data Providers, add Hololight Stream Eye Gaze Provider.

  4. Select MixedRealityToolkit > Input > Pointers > Gaze Provider Settings.

  5. Make sure the box next to Eye Tracking Enabled is checked.

Test Mixed Reality Toolkit 2

Enter Play mode to test if you successfully configured MRTK2.