# \[Tutorial\] How to Stream AI and Navmeshes in Level Streaming

**URL:** <https://forums.unrealengine.com/t/tutorial-how-to-stream-ai-and-navmeshes-in-level-streaming/235640>\
**Category:** Asset Creation\
**Tags:** unreal-engine, UE4-26\
**Created:** [June 15, 2021, 6:22pm UTC](https://forums.unrealengine.com/t/tutorial-how-to-stream-ai-and-navmeshes-in-level-streaming/235640 "2021-06-15T18:22:28Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![gamemaster4688](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gamemaster4688](https://forums.unrealengine.com/u/gamemaster4688)\
**Post date:** [June 15, 2021, 6:22pm UTC](https://forums.unrealengine.com/t/tutorial-how-to-stream-ai-and-navmeshes-in-level-streaming/235640/1 "2021-06-15T18:22:28Z")

</div>

Having problems with getting your AI characters and Navigation to load properly with Level Streaming? Do you find yourself loading in your streaming level with all of your AI characters, only to have them stand in place and not go anywhere? Well after much fiddling around, reading through old posts, and a whole lot of trial and error, I finally figured out how to get AI characters to work properly in Level Streaming! I noticed a ton of other people were having similar issues, and no one seemed to really have a real concrete solution for it. However, I think I managed to find one, so here’s a step by step guide on how I achieved this.

Step 1: In your Project Settings, go to “Navigation Mesh,” and set the Runtime Generation from “Static,” to “Dynamic.” This allows the Navigation building to compensate for the constant loading and unloading of Sub-Levels.

 ![Step 1 - Runtime Generation](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/d/3df8202f22bb6488e0037a0acba8fa78d8743fc8.png)

Step 2: Also in your Project Settings, go to “Navigation System,” and scroll down to “Navigation Enforcing.” Check the box that says “Generate Navigation Only Around Navigation Invokers.” I’ll go into more about what this does a little later.

 ![Step 2 - Enforce Navigation Invoker](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/2/522a5530ac46a86dce0f2083a68ef9c41c6d4082.png)

Step 3: This part’s very important. Grab yourself a Navmesh Bounds Volume, and make sure you put it in **The Persistent Level.** Then make sure the Navmesh covers the _ **entirety** _ of your game world. “But gamemaster,” you might say. “Won’t building the navigation for the _ **entire game world** _ at once completely overload your PC, as well as Unreal Engine as a whole?” Why yes, yes it would! But luckily, there’s a little work around for that!

Step 4: It’s time to go into your AI character now, and you’ll want to add a component called a “Navigation Invoker.”

![Step 4.0 - Navigation Invoker](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/f/7f7cd466740ea290823621a6586bd09151bae36f.png)

What this does is it sets a radius around your AI character, and Navigation will be built around that radius in real time. This way, instead of overloading your PC by building the entire game world’s navigation, it will instead only build the navigation that is needed for your AI character to function. As your character walks around, new Navigation will be built near the areas that it’s approaching, while navigation it’s walking _ **away** _ from will be removed.

With the Navigation Invoker highlighted, set the radius to whatever you want on the panel to the right. I set mine relatively high to compensate for how far the player has to run away from the enemy before they give up chasing them.

![Step 4.5 - Invoker Settings](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/9/79869ee2e74e61cc73e9f8643e1df57ad02a0408.png)

And with that, your AI now has the capability of navigating through your Level Streams! Navigation will be built and unbuilt dynamically as you load and unload your streaming levels, and your AI character should be able to traverse around them without any issue. Here’s the final result!

![AI Level Stream Success](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/3/53f3f4801f459f1b0400961e7f9b20236c20b5ff.gif)

**ONE LAST THING:** On your AI character, make sure to select it’s capsule component, and turn off “Can Ever Affect Navigation.”

![Step 5 - Disable Can Ever Affect Navigation](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/5/a5e04830779d0e5d3232b71095a4901ae31f212b.png)

If you don’t do this, the Navmesh will register the AI character as an obstacle other AI’s have to maneuver around, creating a rather bizzare effect where the AI basically has a stroke trying to get around, because the Navmesh is constantly trying to rebuild itself directly on top of the character. And we don’t want that. 😛

![Can Affect Navigation Example](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/5/b5fe67f8ee2d673dafc303e638df9a3ec0b0ea0d.gif)

So yeah, that’s it! That’s how I got my AI characters working properly in my streaming levels. Hope this helps some of you out there, cause it seems like no one really found a solid solution for this issue. Thanks for reading everyone, and I hope this helped you solve your AI level stream conundrums. 🙂

---

<div class="post-metadata">

**Author:** ![Synopsik](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/synopsik/32/991998_2.png) [@Synopsik](https://forums.unrealengine.com/u/Synopsik)\
**Post date:** [June 15, 2022, 7:04am UTC](https://forums.unrealengine.com/t/tutorial-how-to-stream-ai-and-navmeshes-in-level-streaming/235640/2 "2022-06-15T07:04:21Z")

</div>

DUDE, thank you so much

---

<div class="post-metadata">

**Author:** ![gamemaster4688](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gamemaster4688](https://forums.unrealengine.com/u/gamemaster4688)\
**Post date:** [June 23, 2022, 11:50am UTC](https://forums.unrealengine.com/t/tutorial-how-to-stream-ai-and-navmeshes-in-level-streaming/235640/3 "2022-06-23T11:50:56Z")

</div>

No problem! Glad I could help. 😄

---

<div class="post-metadata">

**Author:** ![Camta005](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/camta005/32/88710_2.png) [@Camta005](https://forums.unrealengine.com/u/Camta005)\
**Post date:** [June 23, 2022, 6:59pm UTC](https://forums.unrealengine.com/t/tutorial-how-to-stream-ai-and-navmeshes-in-level-streaming/235640/4 "2022-06-23T18:59:33Z")

</div>

Thanks also, really useful 😄

---

<div class="post-metadata">

**Author:** ![Pimeine](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pimeine/32/1036533_2.png) [@Pimeine](https://forums.unrealengine.com/u/Pimeine)\
**Post date:** [October 13, 2022, 4:31pm UTC](https://forums.unrealengine.com/t/tutorial-how-to-stream-ai-and-navmeshes-in-level-streaming/235640/5 "2022-10-13T16:31:40Z")

</div>

Hi !

The global navmesh was making my editions really slow when I was loading my levels, so after few settings watched in the project’s navs parameters **(UE5)** I’ve been able to make the same with navmesh inside my sub-level !  
More detail about this : In my UE5 _(didn’t checked previous versions)_ there is options to use or not the nav that exist inside loaded levels.

_► Because in my project it generate random tile of map, so making an infinite big navmesh wasn’t really possible ^^_

---

<div class="post-metadata">

**Author:** ![gamemaster4688](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gamemaster4688](https://forums.unrealengine.com/u/gamemaster4688)\
**Post date:** [October 28, 2022, 12:30am UTC](https://forums.unrealengine.com/t/tutorial-how-to-stream-ai-and-navmeshes-in-level-streaming/235640/6 "2022-10-28T00:30:24Z")

</div>

I’ve not used UE5 very much yet, so I’m unfamiliar with how this method would work there. Sounds interesting though. 😮

The option to use Nav Mesh in loaded levels might be an UE5 exclusive thing, cause I don’t recall ever seeing an option like that in UE4. Sounds like it’d be easier to do it that way than with this somewhat round about way that _ **I** _ had to do to get AI’s to work properly in sub-levels. 😛

---

<div class="post-metadata">

**Author:** ![Pasunna\_Zacrifa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pasunna\_Zacrifa](https://forums.unrealengine.com/u/Pasunna_Zacrifa)\
**Post date:** [January 19, 2023, 7:57am UTC](https://forums.unrealengine.com/t/tutorial-how-to-stream-ai-and-navmeshes-in-level-streaming/235640/7 "2023-01-19T07:57:58Z")

</div>

thanks  
I don’t know why  
but I need to place my ai character in separate level to load  
but it working for now

---

<div class="post-metadata">

**Author:** ![ekiv0x](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ekiv0x](https://forums.unrealengine.com/u/ekiv0x)\
**Post date:** [March 10, 2024, 1:04pm UTC](https://forums.unrealengine.com/t/tutorial-how-to-stream-ai-and-navmeshes-in-level-streaming/235640/8 "2024-03-10T13:04:42Z")

</div>

Oh dude, Since 2021 your post was here waiting me ! Thanks a lot for that trick ! \<3

---

<div class="post-metadata">

**Author:** ![Warhamster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Warhamster](https://forums.unrealengine.com/u/Warhamster)\
**Post date:** [May 23, 2024, 11:17pm UTC](https://forums.unrealengine.com/t/tutorial-how-to-stream-ai-and-navmeshes-in-level-streaming/235640/10 "2024-05-23T23:17:36Z")

</div>

Thank you very much for this tutorial!

---

<div class="post-metadata">

**Author:** ![JD\_1o1o](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JD\_1o1o](https://forums.unrealengine.com/u/JD_1o1o)\
**Post date:** [June 12, 2024, 4:22pm UTC](https://forums.unrealengine.com/t/tutorial-how-to-stream-ai-and-navmeshes-in-level-streaming/235640/11 "2024-06-12T16:22:40Z")

</div>

Brilliant! Solve my problem and well explained, Thanks a lot

---

<div class="post-metadata">

**Author:** ![diliupg2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/diliupg2/32/955431_2.png) [@diliupg2](https://forums.unrealengine.com/u/diliupg2)\
**Post date:** [June 23, 2024, 3:52pm UTC](https://forums.unrealengine.com/t/tutorial-how-to-stream-ai-and-navmeshes-in-level-streaming/235640/12 "2024-06-23T15:52:51Z")

</div>

What an excellent solution! Works like a charm. I hope it is cost effective.

---

<div class="post-metadata">

**Author:** ![araz01](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/araz01/32/1028814_2.png) [@araz01](https://forums.unrealengine.com/u/araz01)\
**Post date:** [August 27, 2024, 8:21pm UTC](https://forums.unrealengine.com/t/tutorial-how-to-stream-ai-and-navmeshes-in-level-streaming/235640/13 "2024-08-27T20:21:51Z")

</div>

actually you dont have to put the nav mesh in persistent, put it in the sub level, then it works.

---

<div class="post-metadata">

**Author:** ![crater1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@crater1](https://forums.unrealengine.com/u/crater1)\
**Post date:** [July 30, 2026, 4:34am UTC](https://forums.unrealengine.com/t/tutorial-how-to-stream-ai-and-navmeshes-in-level-streaming/235640/14 "2026-07-30T04:34:00Z")

</div>

Absolutely massive help, thank you!
