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