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

ApplicationManager changes

OK, we now have a few changes to make in the ApplicationManager. Previously, we used the SetActive(true) call to turn our Skeeball machine on and off; this is less than optimal for working with the WorldAnchor system.

Instead, we will add two new functions: HideSkeeMachine and ShowSkeeMachine. Add everything you see from line 26 (the last line of the Start() function) to line 46:

Both of these functions will use a foreach loop to cycle through all of the child objects of the skee object. Each child it finds will then have SetActive set to true or false, depending on whether we want it on or off.

Next, move your cursor ...

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