Use of undefined type 'ANavMeshBoundsVolume'

I’m trying to reference an ANavMeshBoundsVolume in code, but the compiler just complains that ANavMeshBoundsVolume is an undefined type. I’ve found other examples where people are using ANavMeshBoundsVolume in code, so you obviously can. Is there a header file or module that I need to include or something?

Hey -

You can find the documentation for ANavMeshBoundsVolume here. According to the documentation, you would need to include the header for Runtime/Engine/Classes/AI/Navigation/NavMeshBoundsVolume.h for the code to compile successfully.

Cheers

You’ll just need #include "AI/Navigation/NavMeshBoundsVolume.h"

Thanks guys.