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
| Returns | Name | Description |
|---|---|---|
Ref<NavMeshAsset> | Get | |
void | Set | |
std::string | CompanionPath | The persisted bake beside a scene: <scene>.navmesh for <scene>.mmap (a VFS path like the scene's). |
bool | SaveCompanion | Writes the scene's live bake to its companion path. |
std::string | AgentCompanionPath | <scene>.<agentName>.navmesh — where an agent variant persists. |
Function details
Get
static Ref<NavMeshAsset> Get(const Scene& scene)Set
static void Set(Scene& scene, Ref<NavMeshAsset> nav)CompanionPath
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
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
static std::string AgentCompanionPath(const std::string& scenePath, const std::string& agentName)<scene>.<agentName>.navmesh — where an agent variant persists.