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

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.