Book Image

HoloLens Beginner's Guide

By : Jason M. Odom
Book Image

HoloLens Beginner's Guide

By: Jason M. Odom

Overview of this book

HoloLens revolutionizes the way we work and interact with the virtual world. HoloLens brings you the amazing world of augmented reality and provides an opportunity to explore it like never before. This is the best book for developers who want to start creating interactive and intuitive augmented reality apps for the HoloLens platform. You will start with a walkthrough of the HoloLens hardware before creating your first app. Next you will be introduced to the various HoloLens sensors and find out how to program them efficiently so that they can interact with the real world seamlessly. Moving on, you will learn how to create smart animations and add video overlay that implements real-time tracking and motion-sensing abilities to your HoloLens app. Finally, you will learn how to test your app effectively.
Table of Contents (18 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Dedication
Preface

ApplicationManager


Okay, this class has become a bit of a monster, but we have built upon the changes we made previously using the enum and switch to make the process a bit smarter and to plan ahead to add things such as keeping score and setting throw limits, as well as other things.

With that in mind, the script is too large to go over every line, so grab the version in the Chapter9 downloads package and copy it to your current version. We will spend some time going over the core changes and additions in the next chapter.

Once you have the code copied and saved, the application manager will suddenly look a bit less unruly. One problem that can arise with writing code for Unity is protection levels. Public variables have a slightly different function in Unity than they do in plain C#.

Action makes sound

Now, before we get into the core of the new ApplicationManager, we need to add another component to the AppManager object.

While I like the atmospheric sounds that play when the game begins,...