# AI Navigation 'suddenly' stopped working (World Partition baaad)

**URL:** <https://forums.unrealengine.com/t/ai-navigation-suddenly-stopped-working-world-partition-baaad/626424>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** ARAnchor, unreal-engine, UE5-0\
**Created:** [August 11, 2022, 3:54pm UTC](https://forums.unrealengine.com/t/ai-navigation-suddenly-stopped-working-world-partition-baaad/626424 "2022-08-11T15:54:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![akaPrometh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@akaPrometh](https://forums.unrealengine.com/u/akaPrometh)\
**Post date:** [August 11, 2022, 3:54pm UTC](https://forums.unrealengine.com/t/ai-navigation-suddenly-stopped-working-world-partition-baaad/626424/1 "2022-08-11T15:54:20Z")

</div>

Just a feedback for anyone (hopefully not) stumbling on this… problem.

PROBLEM:  
Enabling World Partition may cause all AI movement to stop working on some levels without saying why.

- BT node MoveTo doesnt work
- AI Move To node doesnt work
- GetRandomLocationInNavigableAreaAround location is always the location
- Calculate path always returns fails

WHY:  
This is because the moment WorldParition is enabled, unreal seems to expect all levels to be paritioned. And if they arent: navigation no longer works and nothing is logged to warn it.

HOW TO FIX:  
In the level there’s an object auto generated by your NavMeshBoundsVolume called ‘RecastNavMesh-Default’, on it the parameter IsWorldParitioned has to be manually set to true or false depending if the level has been paritioned.  
-Note: if this object is deleted: you’ll have to reconfigure it. Never forget.

Theres a global project parameter for this in the project settings, search for IsWorldPartitioned. This does it for all levels.

Ideally Epic could by itself know if the level is partitioned and avoid us the hassle of having to manually set this bool (or suffer 5h not knowing wtf is happening and rerolling many commits back).

---

<div class="post-metadata">

**Author:** ![nonamed46](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nonamed46](https://forums.unrealengine.com/u/nonamed46)\
**Post date:** [August 17, 2022, 1:56am UTC](https://forums.unrealengine.com/t/ai-navigation-suddenly-stopped-working-world-partition-baaad/626424/2 "2022-08-17T01:56:49Z")

</div>

thanks for sharing!  
I was pretty baffled by this because navigation worked on static and with no world partition settings enabled on the navmesh actors themselves but with a weird offset during PIE. (1. is in Editor, 2. during runtime in PIE)  
Only after setting generation to dynamic and following your notes to set everything to be world partitioned it worked again.

 ![Editor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/2/e425564d3a69b33e55ff827b614868ce23b7c4ed.jpeg)  
 ![Runtime](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/4/89407e9e066c42709dfafcbb5903cf4d52689da1.jpeg)

---

<div class="post-metadata">

**Author:** ![SumbodySumwher](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SumbodySumwher](https://forums.unrealengine.com/u/SumbodySumwher)\
**Post date:** [May 31, 2023, 12:57pm UTC](https://forums.unrealengine.com/t/ai-navigation-suddenly-stopped-working-world-partition-baaad/626424/3 "2023-05-31T12:57:48Z")

</div>

I managed to get it working by setting the RecastNavmesh variable **Is World Partitioned Navmesh** to true.

For it to work, you also need to enter the command **n.bNavmeshAllowPartitionedBuildingFromEditor 1** in the editor console.

Generally, following the steps from this link should do the enough:

> **[World Partitioned Navigation Mesh](https://docs.unrealengine.com/5.1/en-US/world-partitioned-navigation-mesh/)**
>
> An overview of how to use a Navigation Mesh with World Partition.

---

<div class="post-metadata">

**Author:** ![tancen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tancen](https://forums.unrealengine.com/u/tancen)\
**Post date:** [August 16, 2024, 7:53am UTC](https://forums.unrealengine.com/t/ai-navigation-suddenly-stopped-working-world-partition-baaad/626424/4 "2024-08-16T07:53:28Z")

</div>

How did you succeed? I tried it in 5.3 and 5.4, and if I checked “Is World Partitioned Navmesh”, it wouldn’t work even if I rebuilt the path.
