ShowFlag.DebugAI doesn't draw AI navigation path

Build type: Binary

Build version: 4.16.2-3514769+++UE4+Release-4.16

Issue description: When ShowFlag.DebugAI is enabled, current AI navigation path for selected AI pawn is not drawn. The problem is FGameplayDebuggerCategory_AI::DrawData(...) missed call to FGameplayDebuggerCategory_AI::DrawPath(...). It seems that it was broken in UE 4.15. In 4.14 it worked as expected.

Please use these projects below to check the issue:

UE4.16 Project with bug

UE4.14 Project without bug

Open project, Run Simulate, activate ShowFlag.DebugAI option via console, select running AI test character and observe the difference: in UE4.14 the navigation corridor AND path are visible, in UE4.16 only navigation corridor shown (no path).

Hey DVRQProgrammer,

If you’re using a source build, you can try the fix I’ve implemented to get this working:

In FGameplayDebuggerCategory_AI::DrawData, I added:


This seemed to give me the desired results. This shouldn’t cause any issues, but let me know if you run into anything.

Let me know if you have further questions.

Have a great day