HoloLens Spatial Mapping
SpatialMapping Components General Settings

Spatial Mapping components

To facilitate Spatial Mapping in Unity and allow easy access to its features, Unity provides two Spatial Mapping XR components:

You can use these components together or independently. Each Spatial Mapping component uses its own SurfaceObserver to understand changes to the physical world. Each Spatial Mapping component periodically queries the Spatial Mapping system to understand what changes have occurred in the physical environment (how often they perform these queries depends on how you configure them). When the system notifies the component of relevant changes, the component prioritizes baking the various changed Surfaces.

The baking process involves generating a Mesh Filter with a Mesh that corresponds to the physical Surface. The components use this Mesh Filter in their own specific ways.

Each Spatial Mapping component is independent of other Spatial Mapping components. This means that each component maintains its own list of Surfaces, even if multiple components see the same Surface. We recommend that you limit the number of Spatial Mapping components you use, in order to optimize performance.


  • 2018–05–01 Page published with editorial review

  • Spatial Mapping for Hololens documentation updated in 2017.3

HoloLens Spatial Mapping
SpatialMapping Components General Settings
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961