class

FNavMeshProvider

Typed face of Scene's opaque nav slot: Get casts GetNavData back to the asset, Set stores it AND pushes to the live nav systems (the contract the retired Scene::SetNavMesh had). The editor bake path and the plugin's own attach hook both go through here.

Module
AINavigation
Header
#include "AINavigation/NavMeshAsset.h"
Namespace
Mowo

Public functions

ReturnsNameDescription
Ref<NavMeshAsset>Get
voidSet
std::stringCompanionPathThe persisted bake beside a scene: <scene>.navmesh for <scene>.mmap (a VFS path like the scene's).
boolSaveCompanionWrites the scene's live bake to its companion path.
std::stringAgentCompanionPath<scene>.<agentName>.navmesh — where an agent variant persists.

Function details

Get

C++
static Ref<NavMeshAsset> Get(const Scene& scene)

Set

C++
static void Set(Scene& scene, Ref<NavMeshAsset> nav)

CompanionPath

C++
static std::string CompanionPath(const std::string& scenePath)

The persisted bake beside a scene: <scene>.navmesh for <scene>.mmap (a VFS path like the scene's). The editor writes it after a bake and the runtime loads it on the first nav attach; until 2026-09-28 nothing wrote it, so every packaged game and every re-opened scene had no navmesh.

SaveCompanion

C++
static bool SaveCompanion(const Scene& scene)

Writes the scene's live bake to its companion path. False with nothing baked or no scene path; the caller decides whether that is news. Agent variants go beside it as <scene>.<Agent>.navmesh.

AgentCompanionPath

C++
static std::string AgentCompanionPath(const std::string& scenePath, const std::string& agentName)

<scene>.<agentName>.navmesh — where an agent variant persists.

Generated from AINavigation/NavMeshAsset.h via ainavigation.json · Oct 27, 2026Version 1.0.0