# UE 4.20.1 Navigation System BUG?

**URL:** <https://forums.unrealengine.com/t/ue-4-20-1-navigation-system-bug/431059>\
**Category:** AI\
**Tags:** ai-navigation, unreal-engine, UE4, question\
**Created:** [August 6, 2018, 11:17am UTC](https://forums.unrealengine.com/t/ue-4-20-1-navigation-system-bug/431059 "2018-08-06T11:17:39Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anonymous\_e5d5c0bf7d300728867097ff79906dbe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_e5d5c0bf7d300728867097ff79906dbe](https://forums.unrealengine.com/u/Anonymous_e5d5c0bf7d300728867097ff79906dbe)\
**Post date:** [August 6, 2018, 11:17am UTC](https://forums.unrealengine.com/t/ue-4-20-1-navigation-system-bug/431059/1 "2018-08-06T11:17:39Z")

</div>

After porting from 4.19.2 to 4.20.1

I failed to package the game → Output log error suggested to change /script/engine.navigationsystem to /script/NavigationSyste.NavigationSystemV1

After I did the change I can not have any NavMesh at all…  
(But I can package the project)

I tried to rebuild the navigation / delete and put new navigation bounds volume nothing works…

What now ?  
What to do ?

Port to unity maybe ?  
I am tired of all that pathetic UE4 changes that breaks code and even the editor…

---

<div class="post-metadata">

**Author:** ![Xptohz3\_turbo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Xptohz3\_turbo](https://forums.unrealengine.com/u/Xptohz3_turbo)\
**Post date:** [August 6, 2018, 12:50pm UTC](https://forums.unrealengine.com/t/ue-4-20-1-navigation-system-bug/431059/2 "2018-08-06T12:50:55Z")

</div>

I upgraded to UE4.20 two weeks ago and it was a real pain in the ■■■.

They changed most of the Navigation API, and I had to rewrite lots of code. However, they have a Python Script that performs the required changes on your code for you.

Check this out: [Unreal Engine 4.20 Release Notes | Unreal Engine Documentation](https://docs.unrealengine.com/en-us/Builds/4_20#programmingupgradenotes)

And trust me, porting to Unity should never be and option. 😉

---

<div class="post-metadata">

**Author:** ![Anonymous\_e5d5c0bf7d300728867097ff79906dbe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_e5d5c0bf7d300728867097ff79906dbe](https://forums.unrealengine.com/u/Anonymous_e5d5c0bf7d300728867097ff79906dbe)\
**Post date:** [August 6, 2018, 1:12pm UTC](https://forums.unrealengine.com/t/ue-4-20-1-navigation-system-bug/431059/3 "2018-08-06T13:12:20Z")

</div>

My code is perfectly compiles

The problem is the editor doesn’t generate any NavMesh when I am using a newer version.  
If I’m using an old version it works perfectly fine - but throws an error on packaging the game.

---

<div class="post-metadata">

**Author:** ![Anonymous\_e5d5c0bf7d300728867097ff79906dbe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_e5d5c0bf7d300728867097ff79906dbe](https://forums.unrealengine.com/u/Anonymous_e5d5c0bf7d300728867097ff79906dbe)\
**Post date:** [August 6, 2018, 1:14pm UTC](https://forums.unrealengine.com/t/ue-4-20-1-navigation-system-bug/431059/4 "2018-08-06T13:14:17Z")

</div>

Also why on earth would they touch navigation !?  
It never worked as expected… so they decided to break it completely ?  
Well Done epic!

---

<div class="post-metadata">

**Author:** ![Anonymous\_e5d5c0bf7d300728867097ff79906dbe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_e5d5c0bf7d300728867097ff79906dbe](https://forums.unrealengine.com/u/Anonymous_e5d5c0bf7d300728867097ff79906dbe)\
**Post date:** [August 8, 2018, 8:58pm UTC](https://forums.unrealengine.com/t/ue-4-20-1-navigation-system-bug/431059/5 "2018-08-08T20:58:58Z")

</div>

Read the question…

---

<div class="post-metadata">

**Author:** ![Bart\_95](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bart\_95](https://forums.unrealengine.com/u/Bart_95)\
**Post date:** [August 21, 2018, 3:44pm UTC](https://forums.unrealengine.com/t/ue-4-20-1-navigation-system-bug/431059/6 "2018-08-21T15:44:47Z")

</div>

I had exactly the same issue. Turned out I had to update the “Navigation Data Class Name” of the supported agent, because it was still trying to get the RecastNavMesh in the engine module (which no longer exists since they created a navigation module).

This can be done in the editor by going to Project Settings → Navigation System → Supported Agents and setting “Navigation Data Class Name” to None and then back to the desired class to trigger an update.

Alternatively you can also update the setting in your DefaultEnigine.ini directly. In my case I had to change “NavigationDataClassName=/Script/Engine.RecastNavMesh” to “NavigationDataClassName=/Script/NavigationSystem.RecastNavMesh”

Note: if you have your map open while applying this fix you might have to reload it.

---

<div class="post-metadata">

**Author:** ![Rogue\_Programmer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rogue_programmer/32/731748_2.png) [@Rogue\_Programmer](https://forums.unrealengine.com/u/Rogue_Programmer)\
**Post date:** [October 6, 2018, 6:20pm UTC](https://forums.unrealengine.com/t/ue-4-20-1-navigation-system-bug/431059/7 "2018-10-06T18:20:52Z")

</div>

I had to follow these steps to get it working.

1. Open project settings.
2. Change Navigation Mesh-\>Runtime Generation to true/checked.
3. Restart editor.
4. Open level with navmesh or create one.
5. Press “P” to visualize navmesh. It works.

---

<div class="post-metadata">

**Author:** ![Anonymous\_e5d5c0bf7d300728867097ff79906dbe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_e5d5c0bf7d300728867097ff79906dbe](https://forums.unrealengine.com/u/Anonymous_e5d5c0bf7d300728867097ff79906dbe)\
**Post date:** [October 6, 2018, 6:32pm UTC](https://forums.unrealengine.com/t/ue-4-20-1-navigation-system-bug/431059/8 "2018-10-06T18:32:10Z")

</div>

I had it as dynamic since the beginning,  
also your suggestion can be achieved easier I suppose - one can mark the navigation to always rebuild on startup and reopen a map.

Needless to say, but my problem was actually that navigation just didn’t build…

In case you wondering → no I didn’t solve the problem - and I didn’t try to go to 4.20 again…  
I have a large project and it takes the whole day to try and port it to newer version.  
And I am not interested in newer bugs - so…

---

<div class="post-metadata">

**Author:** ![r8ivy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@r8ivy](https://forums.unrealengine.com/u/r8ivy)\
**Post date:** [November 16, 2018, 4:11pm UTC](https://forums.unrealengine.com/t/ue-4-20-1-navigation-system-bug/431059/9 "2018-11-16T16:11:36Z")

</div>

this worked for me. thanks alot.

---

<div class="post-metadata">

**Author:** ![ladyplaisir](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ladyplaisir](https://forums.unrealengine.com/u/ladyplaisir)\
**Post date:** [December 26, 2018, 9:38am UTC](https://forums.unrealengine.com/t/ue-4-20-1-navigation-system-bug/431059/10 "2018-12-26T09:38:55Z")

</div>

Thanks you!! THis Really helped!  
_\>\> This can be done in the editor by going to Project Settings → Navigation System → Supported Agents and setting “Navigation Data Class Name” to None and then back to the desired class to trigger an update._

---

<div class="post-metadata">

**Author:** ![Ryan\_Darcey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ryan\_Darcey](https://forums.unrealengine.com/u/Ryan_Darcey)\
**Post date:** [June 21, 2019, 9:51pm UTC](https://forums.unrealengine.com/t/ue-4-20-1-navigation-system-bug/431059/11 "2019-06-21T21:51:41Z")

</div>

That link is broken now. Here’s a working one:

> **[Unreal Engine 4.20 Release Notes](https://docs.unrealengine.com/4.27/en-US/WhatsNew/Builds/ReleaseNotes/4_20/)**
>
> Release Notes for Unreal Engine 4.20

Search for “PROGRAMMING UPGRADE NOTES”

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e12a1674](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e12a1674](https://forums.unrealengine.com/u/anonymous_user_e12a1674)\
**Post date:** [December 10, 2019, 10:19pm UTC](https://forums.unrealengine.com/t/ue-4-20-1-navigation-system-bug/431059/12 "2019-12-10T22:19:58Z")

</div>

Thanks! Work!
