To actually move the picture with the tool and have it attached to the walls, we are going to need the SpatialMapping prefab from MixedRealityToolkit. Its Spatial Mapping Manager component controls the scanning and display of the room model mesh. The HoloLens uses depth sensing technology in the device to build a 3D geometric mesh of your local environment, what is called a Room Model. This mesh is added to your scene as a game object (children of the SpatialMapping object), and resides on a separate layer-Layer 31 by default-and it is specified in the physics layer. The SpatialMapping Inspector is shown here:
Let's add it now:
- From Project Assets/HoloToolkit/SpatialMapping/Prefabs, drag SpatialMapping ...