O'Reilly logo

HoloLens Beginner’s Guide by Jason Odom

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The ApplicationManager code

Inside the Chapter6Downloads.zip file, you will find the ApplicationManager.cs file. Of course, you can always copy and paste that into Visual Studio; again, I highly recommend that you type it yourself.

Here, we will go through each section and walk through the entire file.

First up, we have the Using statements. We have added a few: HoloToolkit.Unity, HoloToolkit.Unity.SpatialMapping, and HoloToolkit.Unity.InputModule. As I had mentioned previously, both SpatialMapping and InputManager are singletons and could not be accessed without these statements:

Here is where we make our own singleton out of the application ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required