How to set UNavArea_Obstacle in C++?

I want to set navigation area class for box componenet in engine version 4.23 but the syntax don’t worked ,
Box->AreaClass = UNavArea_Obstacle::StaticClass();
how I can do it correctly?
Thank You )


I Got this compile time error. No idea what is happening…

Try to add "NavigationSystem" into your .build.cs file. For example:

PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "NavigationSystem"});
2 Likes

Thank You Sir very very much, finally the project gets compiled, Thank You very much )