Skip to content

mtirionMSFT/MRTK-Utilities

Repository files navigation

MRTK Utilities

This is the Unity based HoloLens 2 Application using MRTK 2. This application used to demonstrate MRTK Utilities and basic setup of a project. The implementation is based on learnings from a project a Microsoft CSE team I was part of did for an enterprise customer. There is a series of blogposts that explain more about the learnings contained in this repo:

An overview of the posts can be found here: Learnings from developing a HoloLens Application - Martin Tirion - Medium. The topics we covered in this sharing are:

Unity Packages

In the folder CSE.MRTK.Toolkit.Packages these Unity packages are made available:

Prerequisites

To work with this repo you need these tools:

Setup

When you retrieve this project for the first time from the repo, set it up with these steps:

  1. Open the project with Unity 2020.3 (LTS)

  2. In the Build Settings (menu open File > Build Settings ...)

  3. Under Platform select Universal Windows Platform

  4. Use the settings as shown in the image below: Unity Build Settings

  5. Click Switch Platform

  6. In the Project pane under Assets\Scenes double click Main to open the main scene.

Build

To build the application, execute the Build in the Build Settings dialog. A folder picker dialog will open. Create a Build folder or select the existing one. After the build is done, a Windows Explorer window will open in the Build folder.

A Visual Studio solution is generated from the Unity project. Open the solution (.sln) with Visual Studio. In the top menu bar of Visual Studio select Release and ARM64 for HoloLens deployment.

Visual Studio settings

You can deploy to Device when attached to USB or to Remote over WIFI. If you want to deploy over WIFI, make sure you have set up the Machine Name in the Debugging settings. Right-click the (Universal Windows) project and click Properties. Under Configuration Properties select Debugging. When Remote Machine is selected under Debugger to launch you'll see this UI. Put the IP address of your HoloLens in the Machine Name.

Visual Studio Remote settings

For more information (including setting up your HoloLens for side loading) see Using Visual Studio to deploy and debug - Mixed Reality | Microsoft Docs

Package

For instructions how to package the app to deploy to a HoloLens, see the article Creating the App Package to publish.

About

MRTK Utilities

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published