Skip to content

Spatial Mapping

OlePLarsen edited this page Dec 15, 2021 · 4 revisions

Spatial Mapping Observer

Spatial Mapping Observer is a class that allows the developer to show or use the spatial map as part of the application.
This will collide correctly with raycast and objects. The developer can decide whether the spatial map is visible or not, and what it looks like.
You can also see the mapping extents and detail level. The mapping extent is how far away from where you start the application it will keep generating the spatial mesh. Triangles per mesh will set the coarseness/detail level of the spatial mesh.

Voice Command script

Functions to be aware of:

ToggleSpatialMesh(bool setTo)

This function changes whether the spatial mesh is visible to the player.

ClearSpatialMesh()

This function removes the spatial mesh and starts scanning again.