Spatial mapping components

In the preceding section, we learned how to scan and visualize the environment using the low-level API. In this section, we will do it all again, but this time using the prebuilt components.

We will continue using the same scene, but will disable our SpatialMappingManager script. Do this by selecting SpatialMapping in the Hierarchy panel and unchecking the attached SpatialMappingManager (Script).

With SpatialMapping selected, add the Spatial Mapping component via the Component | AR | Spatial Mapping Collider (Script) menu.

Spatial Mapping Collider (Script) takes care of most code we wrote in the preceding section. It periodically manages polling for surface changes and manages the creation, updation, and deletion ...

Get Microsoft HoloLens By Example 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.