# How to change plan detection mode in playing

**URL:** <https://forums.unrealengine.com/t/how-to-change-plan-detection-mode-in-playing/455170>\
**Category:** XR Development\
**Tags:** ARKit, unreal-engine, Augmented-Reality, question, Blueprint\
**Created:** [September 11, 2019, 8:28am UTC](https://forums.unrealengine.com/t/how-to-change-plan-detection-mode-in-playing/455170 "2019-09-11T08:28:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anonymous\_3528423fceb4bd6f1799bc5c2468220d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_3528423fceb4bd6f1799bc5c2468220d](https://forums.unrealengine.com/u/Anonymous_3528423fceb4bd6f1799bc5c2468220d)\
**Post date:** [September 11, 2019, 8:28am UTC](https://forums.unrealengine.com/t/how-to-change-plan-detection-mode-in-playing/455170/1 "2019-09-11T08:28:37Z")

</div>

Hello,my friend.  
I need to detect the horizontal plan and vertical plan simultaneously and spawn two kinds of meshs on them.

So I want to know how to get all horizontal plans and vertical plans Separately. Or can change plan detection mode in playing,first detect all horizontal plans then detect all horizontal plans.

How to get all horizontal plans and vertical plans Separately from all AR geometries?  
How to change plan detection mode in playing?

---

<div class="post-metadata">

**Author:** ![CosmicLobster](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cosmiclobster/32/1211357_2.png) [@CosmicLobster](https://forums.unrealengine.com/u/CosmicLobster)\
**Post date:** [October 4, 2019, 4:28pm UTC](https://forums.unrealengine.com/t/how-to-change-plan-detection-mode-in-playing/455170/2 "2019-10-04T16:28:59Z")

</div>

Hi!  
to change the detection mode use two different session config files in the content editor.  
Horizontal and vertical plane detection are enabled/disabled in the ar session config.

Start an AR Session with one of them (for example horizontal enabled, vertical disabled). Later run “Start AR Session” again with opposite session Config. There is no need to stop the running Session, just run again with another config.

Be careful the second Ar session config does not have “Reset tracked objects” enabled or you will loose the previously tracked planes.

ARKit and ARCore do give information if vertical or horizontal, but sadly Epic has not put this in blueprints.

---

<div class="post-metadata">

**Author:** ![CosmicLobster](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cosmiclobster/32/1211357_2.png) [@CosmicLobster](https://forums.unrealengine.com/u/CosmicLobster)\
**Post date:** [October 4, 2019, 6:14pm UTC](https://forums.unrealengine.com/t/how-to-change-plan-detection-mode-in-playing/455170/3 "2019-10-04T18:14:52Z")

</div>

So i see, now in UE4.23, there is “Get Orientation”, target is ARPlaneGeometry.  
It returns an enum with either “Horizontal”, “Vertical”, or “Diagonal”, very useful.

---

<div class="post-metadata">

**Author:** ![Anonymous\_3528423fceb4bd6f1799bc5c2468220d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_3528423fceb4bd6f1799bc5c2468220d](https://forums.unrealengine.com/u/Anonymous_3528423fceb4bd6f1799bc5c2468220d)\
**Post date:** [October 29, 2019, 1:28pm UTC](https://forums.unrealengine.com/t/how-to-change-plan-detection-mode-in-playing/455170/4 "2019-10-29T13:28:43Z")

</div>

Thankyou,very useful.  
But now I hava a new problem.How to make Occlusion in AR?  
Just like I can’t see the ball behind the wall.  
Any suggestions?

---

<div class="post-metadata">

**Author:** ![eray\_ozr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eray\_ozr](https://forums.unrealengine.com/u/eray_ozr)\
**Post date:** [August 26, 2022, 8:32am UTC](https://forums.unrealengine.com/t/how-to-change-plan-detection-mode-in-playing/455170/5 "2022-08-26T08:32:58Z")

</div>

This ar not mr. ar don’t have support as occlussion culling.

---

<div class="post-metadata">

**Author:** ![FireDragonG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FireDragonG](https://forums.unrealengine.com/u/FireDragonG)\
**Post date:** [November 16, 2024, 8:09pm UTC](https://forums.unrealengine.com/t/how-to-change-plan-detection-mode-in-playing/455170/6 "2024-11-16T20:09:16Z")

</div>

I covered the Occlusion topic in my AR UE Indoor Navigation tutorial. Here’s the link if you’re interested 🙂 [https://www.youtube.com/watch?v=4Py8nD0a8I0](https://www.youtube.com/watch?v=4Py8nD0a8I0)
