The ApplicationManager code

Inside the 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 ...

Get HoloLens Beginner’s Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.