Set Up Navmesh Invokers In Unreal Engine 4.15

Sometimes our map is very big so we don’t want to generate navmesh for the whole map to reduce the cost.

We can use navmesh invokers to only generate navmesh around the NPCs so they can still move around.

Firstly, we need to go to change Project Settings->Engine->Navigation Mesh->Runtime Generation to Dynamic.

Secondly, we go to Project Settings->Navigation System and check Generate Navigation Only Around Navigation Invokers.

Then, we need to put a navigation volume into the level and make sure it encapsulate the place where we want navmesh to be generated.

At last, we open our npc actor, add a Navigation Invoker component to it.

And register navigation invoker in the event begin play.

 

Leave a comment