# Nav Mesh and Streaming Levels

**URL:** <https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476>\
**Category:** AI\
**Tags:** sub-level, nav-agent, unreal-engine, navmesh, UE4, Blueprint, question\
**Created:** [June 30, 2019, 2:29am UTC](https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476 "2019-06-30T02:29:34Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Jesse\_Valar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jesse\_Valar](https://forums.unrealengine.com/u/Jesse_Valar)\
**Post date:** [November 18, 2020, 9:23pm UTC](https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476/21 "2020-11-18T21:23:00Z")

</div>

yeah persistent level should not have any navigable geometry. I just have directional light, sky, etc there

---

<div class="post-metadata">

**Author:** ![Swe08](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Swe08](https://forums.unrealengine.com/u/Swe08)\
**Post date:** [November 18, 2020, 9:28pm UTC](https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476/22 "2020-11-18T21:28:08Z")

</div>

Yes, 3 navbounds (1 is a dummy in P-level, 2 in each sub level) and 1 recastnavmesh in P-level. You may also try delete your recastnavmesh and create a new one. Also be sure your pool size are enough. Nav-mesh should stream when start play. Be sure you have rebuild nav-mesh with Navigation Build Paths. Use P key to see nav-mesh cover your area.

---

<div class="post-metadata">

**Author:** ![Swe08](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Swe08](https://forums.unrealengine.com/u/Swe08)\
**Post date:** [November 19, 2020, 2:26pm UTC](https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476/23 "2020-11-19T14:26:34Z")

</div>

I use composition and let unreal do all streaming for me. I use dedicated standalone server as well. If you load streaming by your self and not using composition, I don’t know the affect of that I’m afraid.  
I also use dungeons in separate servers. The dungeon is a streaming level. When I connect to that server I point out the composition persistent level that contains the streaming sub dungeon level. The dungeon level may be a demo level from any vendor or market place. Just loading it as it is.

---

<div class="post-metadata">

**Author:** ![Swe08](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Swe08](https://forums.unrealengine.com/u/Swe08)\
**Post date:** [November 19, 2020, 8:47pm UTC](https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476/24 "2020-11-19T20:47:34Z")

</div>

Try increase “Fixed Tile Pool Size” to see if you get more area covered with P-key. Check hole area for any green nav-mesh. Also if you have water surface, disable “Can Ever Affect Navigation” for it.

---

<div class="post-metadata">

**Author:** ![Swe08](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Swe08](https://forums.unrealengine.com/u/Swe08)\
**Post date:** [November 19, 2020, 9:00pm UTC](https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476/25 "2020-11-19T21:00:17Z")

</div>

Only build for sub levels not the persistent level

---

<div class="post-metadata">

**Author:** ![takistudio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@takistudio](https://forums.unrealengine.com/u/takistudio)\
**Post date:** [January 19, 2021, 10:32am UTC](https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476/26 "2021-01-19T10:32:57Z")

</div>

Hi Swe08, thanks for the detail. I have something not fully understood. I followed all your steps, after navmesh built, I use PIE or play game standalone to test, and press P to show green navmesh. But when my pawn run away from a sub level, to let it unload, its green area is still shown. Dost that mean the sub level’s navmesh failed unloading? Did I do something wrong?  
Update: I forgot check “Force rebuild on load”, everytime when I retry and add a new navmesh Vol in p-level I should recheck that. It works all good now. Thank U

---

<div class="post-metadata">

**Author:** ![Swe08](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Swe08](https://forums.unrealengine.com/u/Swe08)\
**Post date:** [February 3, 2021, 12:13pm UTC](https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476/27 "2021-02-03T12:13:46Z")

</div>

Yes, “Force rebuild on load” will refill the dummy NavVolume when loading. When level is unloaded in PIE, I guess it still are cached in dummy NavVolume, but will be overwriten when levels are loaded later.

---

<div class="post-metadata">

**Author:** ![fedexhusky](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fedexhusky](https://forums.unrealengine.com/u/fedexhusky)\
**Post date:** [February 8, 2021, 12:55pm UTC](https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476/28 "2021-02-08T12:55:24Z")

</div>

What do you mean about

“At least one dummy NavVolume has to be in P-level covering the whole world, even if it does not have any geometry. This is important due to all streamed static NavVolumes will be put there.”

I’ve create a nav mesh volume that covers the whole world but it is affecting every sub level. What do I have to do?

Thanks

---

<div class="post-metadata">

**Author:** ![Starkium](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/starkium/32/1194588_2.png) [@Starkium](https://forums.unrealengine.com/u/Starkium)\
**Post date:** [April 20, 2021, 10:53pm UTC](https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476/29 "2021-04-20T22:53:46Z")

</div>

Anyone figure out how to do this for procedural generation? Spawning instances of levels into a persistent level and each level has navigation in it. I found settings in the engine for “should discard sub level nav data” so I’m thinking there is a possible work flow for this. I just have no idea how to go about building the nav data and still only have one recast nav mesh actor. or if that is even the way to get the result.

---

<div class="post-metadata">

**Author:** ![Warani\_Studios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Warani\_Studios](https://forums.unrealengine.com/u/Warani_Studios)\
**Post date:** [November 11, 2021, 10:57am UTC](https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476/30 "2021-11-11T10:57:04Z")

</div>

When you do this for PS4, the persistent level is so heavy that it generates main thread errors, QA will not accept your game like this. It is not a solution to put the navmesh of all the other sublevels at the persistent level, the loading time of this level increases enormously. Although it lags, the only valid option for now is dynamic navmesh only in sublevels

---

<div class="post-metadata">

**Author:** ![Starkium](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/starkium/32/1194588_2.png) [@Starkium](https://forums.unrealengine.com/u/Starkium)\
**Post date:** [November 11, 2021, 4:05pm UTC](https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476/31 "2021-11-11T16:05:11Z")

</div>

not sure you’re on the same page. Dynamically adding level with baked in navigation is not the same as putting navigation in sublevels that are referenced by the persistent level. That would cause bloat.

In my case, I’m using dungeon architect to spawn level instances that have their nav mesh baked. I have no performance issues with this and I’m doing it on an oculus quest which has far less power than the ps4. I think you need to validate your set up as likely what is happening is your navmesh is being regenerated.

I’ll do a quick blog post or something about how to set this up properly at some point.

---

<div class="post-metadata">

**Author:** ![rotacak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rotacak/32/442224_2.png) [@rotacak](https://forums.unrealengine.com/u/rotacak)\
**Post date:** [November 20, 2021, 9:31pm UTC](https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476/32 "2021-11-20T21:31:27Z")

</div>

Can you post your blog address?

---

<div class="post-metadata">

**Author:** ![Swe08](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Swe08](https://forums.unrealengine.com/u/Swe08)\
**Post date:** [April 26, 2022, 9:16pm UTC](https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476/33 "2022-04-26T21:16:44Z")

</div>

For UE5 I just abandon static navmesh and instead using one dynamic navmesh volume cover the holw world and set it to “is spatially loaded” to false. Then just add NavigationInvoker to npc character. Could probably have done that long time ago. Should be used for large worlds according to documentation.

---

<div class="post-metadata">

**Author:** ![D-DutchDave](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@D-DutchDave](https://forums.unrealengine.com/u/D-DutchDave)\
**Post date:** [June 7, 2022, 12:52pm UTC](https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476/34 "2022-06-07T12:52:42Z")

</div>

For future references, this solution also worked

---

<div class="post-metadata">

**Author:** ![JagMaker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JagMaker](https://forums.unrealengine.com/u/JagMaker)\
**Post date:** [June 7, 2022, 2:31pm UTC](https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476/35 "2022-06-07T14:31:56Z")

</div>

hope so)  
Also can try “invokers” technique as alternative.  
I guess there will be less problems than with recast

---

<div class="post-metadata">

**Author:** ![mid\_gen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mid\_gen](https://forums.unrealengine.com/u/mid_gen)\
**Post date:** [January 23, 2023, 3:59pm UTC](https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476/36 "2023-01-23T15:59:29Z")

</div>

Ran into this issue, and found the solution.

In Navigation System Settings, you want to make sure ‘Should Discard Sub Level Nav Data’ is unchecked…appears to be enabled by default.

Statically built nav data in sub levels is used correctly.

---

<div class="post-metadata">

**Author:** ![Petricchor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Petricchor](https://forums.unrealengine.com/u/Petricchor)\
**Post date:** [May 28, 2023, 12:21pm UTC](https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476/37 "2023-05-28T12:21:19Z")

</div>

If there are still people looking for answers, I think the simplest and cheapest method is as follows.

I’m throwing a NavMeshBoundVolume into my world that will cover my whole world and is at my **persistant level**.  
So all my world will have a navigation and it will load.

But I check **“Generate Navigation Only Around Navigation Invokers”** from project settings. So I have navmesh all over my world but it is not loaded.  
Thus, it does not cause a waiting or memory problem at startup.

And I add a simple Navigation Invoker to my characters that need nav mesh.

And I make **“runtime generation = dynamic”** from Project settings or RecastNavMesh.  
This provides that. There is a nav mesh on my persistent level, but it is not loaded, thanks to the ai invoker that I want, it can create its own dynamically when needed.

If it’s not a problem for you, you can only give the invoker to the characters so that the ai can have the nav mesh and walk only when the character is near.

And as far as I can see, this invoker always works because it is dynamic, regardless of the lower level.

---

<div class="post-metadata">

**Author:** ![mid\_gen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mid\_gen](https://forums.unrealengine.com/u/mid_gen)\
**Post date:** [May 29, 2023, 12:23pm UTC](https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476/38 "2023-05-29T12:23:20Z")

</div>

This doesn’t fix the problem, it just means that you generate navmesh at runtime, instead of generating it offline and serialising the data.

---

<div class="post-metadata">

**Author:** ![surmounter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@surmounter](https://forums.unrealengine.com/u/surmounter)\
**Post date:** [August 10, 2023, 7:33am UTC](https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476/39 "2023-08-10T07:33:57Z")

</div>

In UE5.2, it will work!

[Preparation]  
ProjectSettings → Auto Create Navigation Data : Off  
WorldSettings → Auto Spawn Missing Nav Data : Off in persistent Level and streaming Levels  
Delete all RecastNavMesh Actors in persistent Level and streaming Levels

[In Streaming Levels]  
Locate NavMesh Bound Volume

[In Persistent Levels]  
Locate NavMesh Bound Volume, the location of volume doesn’t matter.  
Build → Build Path then you can see recastNavMesh actor is created  
turn “Fixed Tile Pool Size” option on in the recastNavMesh actor

That’s it! you can see streaming level with navmesh will work!

---

<div class="post-metadata">

**Author:** ![TLOA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tloa/32/634422_2.png) [@TLOA](https://forums.unrealengine.com/u/TLOA)\
**Post date:** [March 11, 2024, 3:16pm UTC](https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476/40 "2024-03-11T15:16:31Z")

</div>

Frickin genius. I love you.

[Previous page](https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476.md?page=1)

[Next page](https://forums.unrealengine.com/t/nav-mesh-and-streaming-levels/451476.md?page=3)
