NPC with Character Type "Custom" Ignores Navigation Mesh When Moving to Destination

This is not a published map but a test in my local environment, so I don’t have a public island code.

For testing, I had two types of NPCs travel back and forth between points A and B.
The only difference between them is the NPC Character Type setting: one set to “Custom” and the other to “Guard”.
Both NPCs are controlled using NavigateTo.
The NPC with Character Type “Custom” attempts to move in a straight line to its destination, causing it to collide with walls.