Is there a way to use a Hit Result to check if there is a Nav Mesh?

I’m making a click-to-move game and I desire different things to happen when clicking outside the Nav Mesh. Is there a way to test what is hit? Is there a way to check to see if the player hit a Nav Mesh?

Im sure there are easier ways of doing this.

use get navigation system then get path length and input the clicked location in the path end and the nav agent location ( get controlled pawn then get nav agent location) on path start.

now if you print the path it will output 0 if click is outside nav mesh and non zero if inside nav mesh.

hope this helps.