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

Who wants to score?

Now we have an invisible collision box waiting for something to hit it. Unfortunately, without a script to tell it how to respond, it will do nothing when it is triggered. Let's fix that by following these steps:

  1. In the Inspector, click on Add Component near the bottom of the Component:
  1. Name the New Script ScorePoints:
  1. Double-click on the faded ScorePoints in the ScorePoints component. This will load up Visual Studio:
  1. Once Visual Studio loads, type in the following script. This is a very simple script:
  1. Let's go ...

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