Exercise - Deploy to HoloLens, test, and uninstall

Completed

Now that you have built the base terrain for your Wind Farm experience and placed your turbine assets, it's time to see what you have created! You can build the project for HoloLens 2 and Windows Mixed Reality, or experience it directly from the Unity editor. If you have a Windows Mixed Reality device set up with your PC, pressing the play button in the Unity editor will launch the applicaiton to your headset. If you don't have a HoloLens 2 or mixed reality device, pressing play in the Unity editor will let you interact with your application via the MRTK interaction simulator. For this module, we showcase how to deploy your applicaiton for HoloLens 2. After you've checked out your application, return to build out more functionality into your Mixed Reality experience.

Important

When adjusting your build settings, be sure to Add Open Scenes if your Scene does not appear in the Scenes in Build. Then be sure to select the Scene of interest before adjusting settings. Select Universal Windows Platform as the target Platform.

Screenshot of the Unity build setting window with the main scene and universal windows platform options highlighted.

Once your app has been deployed, you can put on your HoloLens 2 and begin testing the experience. The Start menu on HoloLens is where you'll open apps, see important status info, and access tools like the camera. You can open your app from the Start menu by selecting the app tile BladeMR. You can also say the name of the app to open it. Navigate the experience and test the functionality you developed.

Launch the HoloLens experience

  1. Put on your HoloLens 2 device
  2. Launch the app if you haven't already

Place terrain

  1. When the app first opens, the map will be floating in front you in the direction faced when launching the app.
  2. Grab the base of the map directly with your hands (near interaction) or by using the hand ray pointer (far interaction). The base of the map will turn a light blue when hovered.
  3. Position the map on top of a suitable real-world surface. The hologram will remain anchored at this position allowing you to move around and observe it from any angle.
  4. Explore your app, navigating around the experience and observing your turbines in action.

Exit the app

  1. To exit an app that uses an immersive view, use the Start gesture to bring up the Start menu, then select the Mixed reality Home button.

  2. Once you've exited the app, close the app window using the close icon in the top right of the window.

    Tip

    Apps can be launched and exited by voice or through gestures. For guidance on techniques on how to explore holograms and general usage, refer to Getting around HoloLens 2.

After you're done testing your wind farm experience, uninstall the app:

Uninstall from the Start menu

On the Start menu or in the All apps list, browse to the app. Select and hold until the menu appears, then select Uninstall.

Uninstall from Settings

On the Start menu, select Settings -> Apps. Find the app from the list, select it and then click Uninstall.