C++ NavigationQueryFilter

I’m currently porting a bunch of my blueprint stuff into c++ and my navigation query filters don’t seem to be working as intended. I’ve got the default nav area disabled but my AI is walking around in it anyways. I’ve got all this stuff working before in BP, just figuring out what i’ve done wrong while porting to c++. Ideally for the filter shown below, I want to exclude ZoneB, C, D and the default navmesh, and include ZoneA as a walkable area.

Here is one of my area classes.

Here’s my navigation query filter subclass.

1 Like

When i create a blueprint derived from my C++ class in order to have a look at the values, it looks like this.

This is the solution. You need to actually define the TSubclassOf variables, not just declare them.