struct

NavMeshModifierComponent

Per-entity nav-mesh area override. Attach to an entity that also has a MeshRenderer to tag every triangle that mesh contributes to the bake with a custom area type.

Module
Game
Header
#include "Game/Components/NavMeshModifierComponent.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

Area types follow Unity's NavMeshModifier convention: 0 = Walkable (default — same as having no modifier) 1 = Water (walkable but agents may path around it via filter cost) 2 = Ladder 3..62 = user-defined 63 = Not Walkable (the mesh is cut OUT of the bake — useful for fences, glass walls, "fake floor" decals that shouldn't be paths).

dtQueryFilter::setAreaCost lets agents weight different areas — e.g. AI that "avoids water unless necessary". The default cost is 1.0; a water tile with cost 2.0 makes the planner prefer dry routes.

Properties

TypeNameDescription
boolenabledDefault true.
int32_tareaTypeDefault 0.
booloverrideAreaDefault true.
static constexpr int32_tAREA_WALKABLEDefault 0.
static constexpr int32_tAREA_WATERDefault 1.
static constexpr int32_tAREA_LADDERDefault 2.
static constexpr int32_tAREA_NOT_WALKABLEDefault 63.

Constructors

SignatureNameDescription
NavMeshModifierComponent() = defaultNavMeshModifierComponent

Function details

C++
NavMeshModifierComponent() = default
Generated from Game/Components/NavMeshModifierComponent.h via game.json · Nov 5, 2026Version 1.0.0