The easy way

I promised you there is an easier way of doing this. You will be surprised how easy it is. You may even wonder why we bother with all the hard code we used above. The reason is that I want you to know how things work underneath. You will need that knowledge if you want to have more control over what is happening under the covers. However, that being said--most of the time you just want to be able to use the surface mapping and spatial discovery. Here we go.

These are the steps you need to take.

  1. Create a new project in Unity3D.
  2. Set all the settings required for a HoloLens project (camera, player, and so on)
  3. In your scene, add a new empty game object. Call it “Managers”
  4. Add two components to this new game object
    1. Spatial Mapping ...

Get Microsoft HoloLens Developer’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.