
Add a Cube to the scene and set its position 0, 0, 5, and rotation to 45, 45, 45. Holographic Remoting Player Setupįirst, let’s create a simple cube and test it using the Holographic Remoting Player we installed in the previous post. Check the Virtual Reality Supported and under the Virtual Reality SDKs section, click the plus and add Windows Mixed Reality. To do this, simply go to Edit -> Project Settings -> Player and open the section for XR Settings. Add Virtual Reality Supportīefore we start building, we need to tell the Hololens to process our app using Mixed Reality. Viola! We are ready to set up Virtual Reality support for our Unity app using MRTK2. Pick the configuration profile that matches your Hololens version. A dialog will pop up with some Mixed Reality Profile options.

Click it and select Add to Scene and Configure. Now you should see a Mixed Reality Toolkit menu tab in Unity. Click Apply, and Reload the scene if prompted. After this completes, you may get a message asking you to “Apply Mixed Reality Toolkit Default Settings”. Once downloaded, double click it and import everything into your blank Unity Project. You can optionally install the examples, extensions, and tools packages, but those are not required.

Next, go to the MRTK2 Releases page and download the .Foundation.2.1.0.unitypackage package.

Setting up MRTK2 in the Unity appįirst, create a new blank Unity Project where we will setup the Mixed Reality Toolkit 2 (MRTK2). If you are coming from the video, you can find the SlideHandler.cs script in the scripts section below. Now that we are setup, let’s go ahead and start building! Previously, we added all the items we needed to be able to build a Mixed Reality application for the Hololens. In this post, we are going to build a simple MRTK2 Unity app for Microsoft Hololens. “As a follow up post to our MRTK2 Unity Development Setup, we’ll explore building and deploying a simple Hololens app in Unity.” Overview
