# Spawn a navmesh volume with blueprint

**URL:** <https://forums.unrealengine.com/t/spawn-a-navmesh-volume-with-blueprint/302146>\
**Category:** Blueprint\
**Tags:** spawn, unreal-engine, Volumes, navmesh, Blueprint, question\
**Created:** [December 21, 2014, 1:37am UTC](https://forums.unrealengine.com/t/spawn-a-navmesh-volume-with-blueprint/302146 "2014-12-21T01:37:25Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_4e5733e9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4e5733e9](https://forums.unrealengine.com/u/anonymous_user_4e5733e9)\
**Post date:** [December 21, 2014, 1:37am UTC](https://forums.unrealengine.com/t/spawn-a-navmesh-volume-with-blueprint/302146/1 "2014-12-21T01:37:25Z")

</div>

I’m trying to create a navmesh volume from blueprint.  
So far i tried to spawn the volume with SpawnActor, but i should be missing some points as i can’t figure it out how to make that work (i tried with BSP for testing purpose : it does not work either).

Any ideas how to create a volume with blueprint?

 ![24632-sapwn_volume.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/f/d/dfd5a642eadff7550fa5c818c330f461c8a1b1f1.jpeg)

---

<div class="post-metadata">

**Author:** ![MieszkoZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MieszkoZ](https://forums.unrealengine.com/u/MieszkoZ)\
**Post date:** [December 21, 2014, 5:57pm UTC](https://forums.unrealengine.com/t/spawn-a-navmesh-volume-with-blueprint/302146/2 "2014-12-21T17:57:33Z")

</div>

The shape of a `Volume` is define by BSP brushes, and these cannot be spawned at runtime. So even if you successfully spawn a `NavMeshBoundsVolume` actor it won’t be fully functional.

What are you trying to do? Is spawning volumes is the only way to achieve what you want?

Cheers,

–mieszko

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4e5733e9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4e5733e9](https://forums.unrealengine.com/u/anonymous_user_4e5733e9)\
**Post date:** [December 21, 2014, 7:25pm UTC](https://forums.unrealengine.com/t/spawn-a-navmesh-volume-with-blueprint/302146/3 "2014-12-21T19:25:45Z")

</div>

Hi mieszko, thank you for the answer  
What I try to achieve is to have a navmesh added on the map at specified location. The map is too big to cover it all from the editor.

Instead of spawning the volume would it be possible to copy a previously made volume for exemple ? I only succeed so far to move a volume not “duplicate” it.

---

<div class="post-metadata">

**Author:** ![MieszkoZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MieszkoZ](https://forums.unrealengine.com/u/MieszkoZ)\
**Post date:** [December 22, 2014, 6:02pm UTC](https://forums.unrealengine.com/t/spawn-a-navmesh-volume-with-blueprint/302146/4 "2014-12-22T18:02:07Z")

</div>

I have something in the works that will give you functionality you need (should be ready for 4.8). For now I suggest using a workaround, like having a pool of pre-created Volumes you move and scale at runtime.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4e5733e9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4e5733e9](https://forums.unrealengine.com/u/anonymous_user_4e5733e9)\
**Post date:** [December 22, 2014, 10:36pm UTC](https://forums.unrealengine.com/t/spawn-a-navmesh-volume-with-blueprint/302146/5 "2014-12-22T22:36:18Z")

</div>

Okay, i’ll go for that in the meantime. Thanks for the upcomming functionality, and waiting for 4.8.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d1f1e259](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d1f1e259](https://forums.unrealengine.com/u/anonymous_user_d1f1e259)\
**Post date:** [February 15, 2015, 9:03pm UTC](https://forums.unrealengine.com/t/spawn-a-navmesh-volume-with-blueprint/302146/6 "2015-02-15T21:03:39Z")

</div>

, would you mind elaborating on how exactly to scale a ANavMeshBoundsVolume instance in C++? I’m a bit confused on how one would do so at runtime with all the brush builder stuff - if that’s even relevant.

---

<div class="post-metadata">

**Author:** ![MieszkoZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MieszkoZ](https://forums.unrealengine.com/u/MieszkoZ)\
**Post date:** [February 17, 2015, 12:32pm UTC](https://forums.unrealengine.com/t/spawn-a-navmesh-volume-with-blueprint/302146/7 "2015-02-17T12:32:13Z")

</div>

The trick I’ve used in one project was to have a unit-sized `NavMeshBoundsVolume` (1x1x1uu) and scale it at runtime like so:

```
// hack-change modify frequency - otherwise SetActorLocation will fail.
NavmeshBounds->GetRootComponent()->SetMobility(EComponentMobility::Stationary);

NavmeshBounds->SetActorLocation(MyBounds.GetCenter(), false);
NavmeshBounds->SetActorRelativeScale3D(MyBounds.GetSize());
NavmeshBounds->GetRootComponent()->UpdateBounds();

// redo modify frequency change
NavmeshBounds->GetRootComponent()->SetMobility(EComponentMobility::Static);

```

where `MyBounds` is an arbitrary `FBox`. This works in cooked builds as well. You might need to call `UNavigationSystem::OnNavigationBoundsUpdated` after such nav bounds scaling.

Hope it helps!

–mieszko

---

<div class="post-metadata">

**Author:** ![rajkosto](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rajkosto](https://forums.unrealengine.com/u/rajkosto)\
**Post date:** [June 21, 2015, 1:41pm UTC](https://forums.unrealengine.com/t/spawn-a-navmesh-volume-with-blueprint/302146/8 "2015-06-21T13:41:28Z")

</div>

Yo i’m in 4.8 what’s this other method ? I really dont want to have to reference a 1x1uu existing volume.

---

<div class="post-metadata">

**Author:** ![MieszkoZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MieszkoZ](https://forums.unrealengine.com/u/MieszkoZ)\
**Post date:** [June 22, 2015, 9:30am UTC](https://forums.unrealengine.com/t/spawn-a-navmesh-volume-with-blueprint/302146/9 "2015-06-22T09:30:02Z")

</div>

Navigation Invokers is what I had in mind, and that’s indeed up and running in 4.8. There’s unfortunately no documentation on it, but have a look at a (very rough) video I’ve recorded for it: [https://drive.google.com/open?id=0Bwm0SVD0Nb8HdUExVUE1NmkzN2c](https://drive.google.com/open?id=0Bwm0SVD0Nb8HdUExVUE1NmkzN2c)

---

<div class="post-metadata">

**Author:** ![Eight\_Bit\_Punk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Eight\_Bit\_Punk](https://forums.unrealengine.com/u/Eight_Bit_Punk)\
**Post date:** [July 4, 2015, 9:36pm UTC](https://forums.unrealengine.com/t/spawn-a-navmesh-volume-with-blueprint/302146/10 "2015-07-04T21:36:34Z")

</div>

Thanks for sharing that video MieszkoZ ! I’m going to test out your system in a game i’m trying to develop. Because my entire level is being generated via blueprints (like the endless runner tutorial), i can put a huge navmesh bounds box and then generate the nav mesh as i go!

Not sure if it’ll work, but without your work, i would’ve had no place to start! TY TY TY!!! 🙂

---

<div class="post-metadata">

**Author:** ![Shoiko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shoiko](https://forums.unrealengine.com/u/Shoiko)\
**Post date:** [March 14, 2016, 10:12pm UTC](https://forums.unrealengine.com/t/spawn-a-navmesh-volume-with-blueprint/302146/11 "2016-03-14T22:12:56Z")

</div>

requested access to said video. I am trying to get nav for my npcs and mob ai to work.

---

<div class="post-metadata">

**Author:** ![MieszkoZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MieszkoZ](https://forums.unrealengine.com/u/MieszkoZ)\
**Post date:** [March 14, 2016, 10:46pm UTC](https://forums.unrealengine.com/t/spawn-a-navmesh-volume-with-blueprint/302146/12 "2016-03-14T22:46:02Z")

</div>

The video has been move to this location: [https://drive.google.com/open?id=0Bwm0SVD0Nb8HdUExVUE1NmkzN2c](https://drive.google.com/open?id=0Bwm0SVD0Nb8HdUExVUE1NmkzN2c)  
(updated the original comment as well)

---

<div class="post-metadata">

**Author:** ![Shoiko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shoiko](https://forums.unrealengine.com/u/Shoiko)\
**Post date:** [March 14, 2016, 11:16pm UTC](https://forums.unrealengine.com/t/spawn-a-navmesh-volume-with-blueprint/302146/13 "2016-03-14T23:16:22Z")

</div>

This is exactly what I’ve been looking for, this is literally the only source i found for how to set this up. \<3 Am i allowed to post this in the UE4 community knowledge base? If the traffic is too much I can upload to youtube with references back to this post.

---

<div class="post-metadata">

**Author:** ![MieszkoZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MieszkoZ](https://forums.unrealengine.com/u/MieszkoZ)\
**Post date:** [March 15, 2016, 1:21am UTC](https://forums.unrealengine.com/t/spawn-a-navmesh-volume-with-blueprint/302146/14 "2016-03-15T01:21:40Z")

</div>

feel free to share the link, but do not put it on youtube. I’ll do it myself, but I need to ask right people first.

---

<div class="post-metadata">

**Author:** ![Shoiko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shoiko](https://forums.unrealengine.com/u/Shoiko)\
**Post date:** [May 17, 2016, 10:48am UTC](https://forums.unrealengine.com/t/spawn-a-navmesh-volume-with-blueprint/302146/15 "2016-05-17T10:48:46Z")

</div>

Good day sir. I’m not sure if you have time but I have had much success with the invokers until trying to use them with persistent levels. As soon as i drop an invoker actor onto the map the editor crashes: [https://answers.unrealengine.com/questions/421100/navigation-invokers-crashing-editor-when-used-with.html](https://answers.unrealengine.com/questions/421100/navigation-invokers-crashing-editor-when-used-with.html)
