u/Good_Disk6586

Hi everyone,

I’m struggling with a weird visualization bug in UE5. My NavMesh seems to be generated correctly (it shows up green when I press 'P'), but the Path Preview/Pathline is shifted to the right.

The situation:

  • The green NavMesh (P) is in the correct place.
  • The AI character can moves.
  • HOWEVER, the visual path (the preview line/points) is offset to the side (to the right). It looks like the navigation data is being rendered with some weird global offset.

What I’ve already tried:

  • Deleted RecastNavMesh-Default and let the engine regenerate it.
  • Deleted NavMeshBoundsVolume and created it again (yesterday I had same situation and this move fixed it but not now :))
  • Deleted Intermediate, Saved, and even the Config folder to reset project settings.
  • Verified that the floor/environment has no weird scaling (everything is at 1.0).
  • The RecastNavMesh actor in the Outliner is at 0,0,0 location.
  • Changed Runtime Generation between Static and Dynamic.

The Git Mystery:

My entire project is version-controlled via Git. Interestingly, even when I roll back to previous commits from days ago (when everything was working fine), the issue is still there. Where it can be stored?

It feels like a coordinate system mismatch or a bug in the NavMesh Visualizer itself. Has anyone encountered a situation where the Path Preview doesn't match the actual NavMesh location?

Here the screenshot https://imgur.com/a/HLfH4DB showing Pawn vs the shifted pathline. Any help would be greatly appreciated as I’m out of ideas!

Here is my code for drawing preview https://pastebin.com/yWf1phS7

UE Version: 5.7.4-51494982+++UE5+Release-5.7

Platform: Windows 11 (25H2) [10.0.26200.8246] (x86_64)

u/Good_Disk6586 — 8 days ago