# Using Spatial Mapping with HoloLens 2

**URL:** <https://forums.unrealengine.com/t/using-spatial-mapping-with-hololens-2/487987>\
**Category:** Audio\
**Tags:** unreal-engine, Augmented-Reality, question, Hololens\
**Created:** [August 25, 2021, 11:46am UTC](https://forums.unrealengine.com/t/using-spatial-mapping-with-hololens-2/487987 "2021-08-25T11:46:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_258b593f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_258b593f](https://forums.unrealengine.com/u/anonymous_user_258b593f)\
**Post date:** [August 25, 2021, 11:46am UTC](https://forums.unrealengine.com/t/using-spatial-mapping-with-hololens-2/487987/1 "2021-08-25T11:46:54Z")

</div>

Hi,

I’m currently trying to use the Spatial Mapping feature for the HoloLens 2. I’ve followed the steps as shown in [this tutorial](https://docs.microsoft.com/en-us/windows/mixed-reality/develop/unreal/unreal-spatial-mapping).  
Sadly, I haven’t been able to receive any event notifications to get a hold of the mesh or the added / updated geometries.

Did anyone have similar experiences or maybe get it to work properly?

Best regards

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fe8fa328](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fe8fa328](https://forums.unrealengine.com/u/anonymous_user_fe8fa328)\
**Post date:** [November 19, 2021, 8:26pm UTC](https://forums.unrealengine.com/t/using-spatial-mapping-with-hololens-2/487987/2 "2021-11-19T20:26:49Z")

</div>

Hi. I met the same issue. I think the issue is the event. I made a test. The update tracked geometry event didn’t execute. How is your issue going. Did you solve it? Appreciate any help in advance.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fe8fa328](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fe8fa328](https://forums.unrealengine.com/u/anonymous_user_fe8fa328)\
**Post date:** [February 5, 2022, 8:47pm UTC](https://forums.unrealengine.com/t/using-spatial-mapping-with-hololens-2/487987/3 "2022-02-05T20:47:15Z")

</div>

I solved this issue. If needs help please contact me.

---

<div class="post-metadata">

**Author:** ![JesseSPIE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JesseSPIE](https://forums.unrealengine.com/u/JesseSPIE)\
**Post date:** [June 7, 2022, 1:15pm UTC](https://forums.unrealengine.com/t/using-spatial-mapping-with-hololens-2/487987/4 "2022-06-07T13:15:22Z")

</div>

Hey, following these steps didn’t give me any results. The only way I get a wireframe of the spatial mapping, is from enabling _Generate Mesh Data from Tracked Geometry_ and _Render Mesh Data in Wireframe_ within the ARSessionConfig. However, this feature is always ON or OFF and I would like to toggle it.

How did you solve your issues?

---

<div class="post-metadata">

**Author:** ![vrfine](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vrfine](https://forums.unrealengine.com/u/vrfine)\
**Post date:** [June 11, 2023, 1:18pm UTC](https://forums.unrealengine.com/t/using-spatial-mapping-with-hololens-2/487987/6 "2023-06-11T13:18:24Z")

</div>

I also encountered the same problem as you, how did you solve it? Can you teach me?
