NavNesh Areas can affect NavNesh generation and agent behavior/pathing.

Obstacles

Areas allow to block of certain areas of the NavNesh both in editor and at runtime.

Obstacles can be created by creating a NavMesh Area Component, enabling the IsBlocking flag and linking it to a collider component.
In most scenarios, the linked collider should be a trigger, so it still allows physics objects to pass through, while blocking NavMesh generation.

Simple Obstacle setup using a NavMesh Area Component & a box collider.

  • Static obstacles are basically free.
  • Moving obstacles are a bit more expensive, but you should be able to have at least a couple of dozens of them.

Model colliders are only partially supported, they work as expected if your model uses hull shapes or primitives (box, sphere, capsule) as collision shapes. Non hull/primitive collision shapes will be approximated as a box.

Examples






Created 3 Dec 2024
Updated 14 Apr 2025