I’m getting this weird linker error:
unresolved external symbol "__declspec(dllimport) public: static class UNavigationSystemV1 * __cdecl UNavigationSystemV1::GetCurrent(class UWorld *)" (__imp_?GetCurrent@UNavigationSystemV1@@SAPEAV1@PEAVUWorld@@@Z) referenced in function "private: void __cdecl AVRCharacter::UpdateDestinationMarker(void)" (?UpdateDestinationMarker@AVRCharacter@@AEAAXXZ)
I’ve included the Navigation System:
#include "NavigationSystem.h"
And here’s the code that’s making the error:
UNavigationSystemV1* NavSystem = UNavigationSystemV1::GetCurrent(GetWorld());
If I try to use the function to project the point, I get the same time of linker error.
I’m using UE4 version 4.24.3.
I’ve tried to delete Build, Intermediate, and Saved and then rebuilding, but I get the same errors? Anyone know what’s wrong?