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.
-
Go to the Microsoft Mixed Reality Toolkit git project.
-
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. |
-
Select Window > Package Manager.
-
In the Package Manger, select + > Add package from tarball.
-
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.
Check configuration
After you configure your project and scene, select MixedRealityToolkit in the Hierarchy and check the following settings:
-
Select Camera > Camera Settings Providers. Make sure XR SDK Camera Settings is one of the providers.
-
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.
-
Select MixedRealityToolkit in the Hierarchy.
-
Select Input in the Inspector.
-
Under Input Data Providers, add Hololight Stream Eye Gaze Provider.
-
Select MixedRealityToolkit > Input > Pointers > Gaze Provider Settings.
-
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.
Continue to Set up AR Foundation for Hololight Stream for Unity.