# How do I get my Navigation Mesh to recognize an instanced static mesh?

**URL:** <https://forums.unrealengine.com/t/how-do-i-get-my-navigation-mesh-to-recognize-an-instanced-static-mesh/657969>\
**Category:** Asset Creation\
**Tags:** UE5-0, question\
**Created:** [September 28, 2022, 4:58am UTC](https://forums.unrealengine.com/t/how-do-i-get-my-navigation-mesh-to-recognize-an-instanced-static-mesh/657969 "2022-09-28T04:58:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Valthazier](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Valthazier](https://forums.unrealengine.com/u/Valthazier)\
**Post date:** [September 28, 2022, 4:58am UTC](https://forums.unrealengine.com/t/how-do-i-get-my-navigation-mesh-to-recognize-an-instanced-static-mesh/657969/1 "2022-09-28T04:58:16Z")

</div>

I have a procedurally generated maze that is done inside of an instance manager BP. It essentially loops through my parameters and adds instanced static meshes based on a random path. To create the maze I followed this YouTube tutorial: [UE4 | UE5 | Maze Generation Tutorial - Pt 1 - YouTube](https://www.youtube.com/watch?v=Q4aAGLBqnsc)

I have an AI and the Player spawn at a random point in the maze, and I’m trying to get the AI to come track the player down via AIMoveTo.

The problem I’m running into (how I understand it), is that the Navigation Mesh Volume has already been built before the maze spawns in. So once the maze spawns, it doesn’t try to build the NavMesh again. It’d make sense that setting Nav to Dynamic would fix this but it does not.

I am spawning the maze into the world by first spawning in the Instance Manager actor BP, and then the Maze actor BP. I’m doing this in the Level BP.

However, if I manually place the Instance Manager and the Maze BP into the Level, then go into the Static Mesh file for a piece of the maze’s floor and change the material, the pathing will update inside the maze. I’m able to add in an AI and a Player Start and the AI will follow me around like it should. If I manually move the maze after this, the pathing resets and I have to change material again to get it back.

 ![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/a/a/6aa54f3498a56efb207752ea759aad64bfe40e6e.jpeg)  
 ![2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/8/fb8291273a698913af7900964de4fa838cf70501.jpeg)  
 ![3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/9/fc9b5d1cf1295a7986eb1c06c2007217a65fe07c.jpeg)

Is there a way to force a rebuild of the NavMesh after the maze is loaded? Am I approaching this from the wrong angle? I can post more screenshots or post any extra info.

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![Valthazier](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Valthazier](https://forums.unrealengine.com/u/Valthazier)\
**Post date:** [September 28, 2022, 5:28pm UTC](https://forums.unrealengine.com/t/how-do-i-get-my-navigation-mesh-to-recognize-an-instanced-static-mesh/657969/2 "2022-09-28T17:28:24Z")

</div>

I kind of solved this - I just stopped using instanced static meshes. Made all of the meshes I was using into Actors and spawned those instead without the use of an instance manager.

A little heavier on the FPS but after scouring for answers for hours I feel like I had no choice.

---

<div class="post-metadata">

**Author:** ![heisco](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@heisco](https://forums.unrealengine.com/u/heisco)\
**Post date:** [February 17, 2023, 4:42am UTC](https://forums.unrealengine.com/t/how-do-i-get-my-navigation-mesh-to-recognize-an-instanced-static-mesh/657969/3 "2023-02-17T04:42:26Z")

</div>

I experienced a similar problem with UE5.0.X.  
Dynamic NavMesh was not properly created for procedurally generated ISM instances.  
In my case, I solved it by setting the ISM’s collision to “No Collision” after procedural generation, then resetting it back to “Collision Enabled”.  
This only needs to be done once after the actor containing the ISM is spawned.  
After that, the dynamic navmesh will update normally.  
Hope this helps someone who will experience a similar problem in the future.

---

<div class="post-metadata">

**Author:** ![SimplestWay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SimplestWay](https://forums.unrealengine.com/u/SimplestWay)\
**Post date:** [October 21, 2023, 1:43pm UTC](https://forums.unrealengine.com/t/how-do-i-get-my-navigation-mesh-to-recognize-an-instanced-static-mesh/657969/4 "2023-10-21T13:43:08Z")

</div>

I tested this in UE5.1.1, I don’t know if this works for UE5.0.

You need c++ to get this problem fixed:

in .h file:

```auto
UFUNCTION(BlueprintCallable, Category = "GameHelpers")
	static UInstancedStaticMeshComponent* AddInstancedStaticMeshes(AActor* Parent, UStaticMesh* Mesh, const TArray<FTransform>& Transforms);

```

in .cpp file:

```auto
UInstancedStaticMeshComponent* UGameHelpers::AddInstancedStaticMeshes(AActor* Parent, UStaticMesh* Mesh,
	const TArray<FTransform>& Transforms)
{
	if(Parent)
	{
		UInstancedStaticMeshComponent* InstMeshComp = NewObject<UInstancedStaticMeshComponent>(Parent);
		if(InstMeshComp)
		{
			InstMeshComp->SetupAttachment(Parent->GetRootComponent());
			InstMeshComp->RegisterComponent();
			InstMeshComp->SetStaticMesh(Mesh);
			InstMeshComp->AddInstances(Transforms, false);
			InstMeshComp->SetCollisionProfileName("BlockAll");
			InstMeshComp->SetCustomNavigableGeometry(EHasCustomNavigableGeometry::EvenIfNotCollidable);
			
			return InstMeshComp;
		}
	}
	return nullptr;
}

```

---

<div class="post-metadata">

**Author:** ![SCC-VRAC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scc-vrac/32/585779_2.png) [@SCC-VRAC](https://forums.unrealengine.com/u/SCC-VRAC)\
**Post date:** [October 24, 2023, 2:31am UTC](https://forums.unrealengine.com/t/how-do-i-get-my-navigation-mesh-to-recognize-an-instanced-static-mesh/657969/5 "2023-10-24T02:31:13Z")

</div>

None of those fixes worked for me, and I’m not familiar with C++ whatsoever.  
HOWEVER I did some digging into the modifying the navigation mesh documentation, and found that there is a setting in Project settings labeled “Runtime Generation” that when set to dynamic, it fixes the issue,

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/1/0e14b86df568db418fa6812adda57da21f2418f4.png)

---

<div class="post-metadata">

**Author:** ![togaykurtulus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@togaykurtulus](https://forums.unrealengine.com/u/togaykurtulus)\
**Post date:** [June 20, 2024, 10:45am UTC](https://forums.unrealengine.com/t/how-do-i-get-my-navigation-mesh-to-recognize-an-instanced-static-mesh/657969/6 "2024-06-20T10:45:49Z")

</div>

But it is not a fix , you changed your pipeline. The bug or whatever we call it is still there. I am using 5.4.2 and i can not have a navmesh on some of my HISM actors

---

<div class="post-metadata">

**Author:** ![alexpanter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alexpanter](https://forums.unrealengine.com/u/alexpanter)\
**Post date:** [November 24, 2026, 5:03pm UTC](https://forums.unrealengine.com/t/how-do-i-get-my-navigation-mesh-to-recognize-an-instanced-static-mesh/657969/7 "2026-11-24T17:03:15Z")

</div>

Seems very heavy. You can also just click on the Actor, click on the InstancedStaticMeshComponent and set its Mobility to Static - that will automatically creative navigation on them with no additional runtime penalties.
