I’m doing the course in 4.20 and ran into the issue of ProjectPointToNavigation() not working. Error says it is not a member of UNavigationSystemBase.
After a few days of searching I found out that most Navigation System-related code has been moved out of the Engine code and into a new Navigation System Module.
So to get the code working I had to add “NavigationSystem” to the core modules in build.cs:
Thanks for this info, although it doesn’t work for me. I updated to the latest version before starting this course, 4.2.3, and I get the errors;
“FNavigationSystem::GetCurrent’: no matching overloaded function found”
“TNavSys *FNavigationSystem::GetCurrent(UWorld *)’: could not deduce template argument for 'TNavSys”
Severity Code Description Project File Line Suppression State
Error C2672 ‘FNavigationSystem::GetCurrent’: no matching overloaded function found ArchitectureExplorer D:\Unreal Projects\Udemy_VR\ArchitectureExplorer\Source\ArchitectureExplorer\VRCharacter.cpp 58
Severity Code Description Project File Line Suppression State
Error C2783 ‘TNavSys *FNavigationSystem::GetCurrent(UWorld *)’: could not deduce template argument for ‘TNavSys’ ArchitectureExplorer D:\Unreal Projects\Udemy_VR\ArchitectureExplorer\Source\ArchitectureExplorer\VRCharacter.cpp 58
DONT copy and paste…
PublicDependencyModuleNames.AddRange(new string { “Core”, “CoreUObject”, “Engine”, “InputCore”, “NavigationSystem” });
…
From the post above. Just type it in. The quotation marks are not the same as the standard quotation marks.
Help,
I’m working with UE 4.22 and have just started the course and have just arrived at point 13. Projection on the navmesh. VS does not compile anymore, “UNavigationSystem :: ProjectPointToNavigation is Deprecated”
Where do I have to make changes compiling VS? Please step by step if possible.
My understanding is, Unreal uses Python 2.7 by default. Can you give me a little more help - where do I put the script exactly - in the project folder at the top, and where do I start the script? do I then open the project or VS?
I’ve been doing interim - copy in projectfolder-change MAKE_CHANGES_IN_SOURCE_FILES to true and save - right mousebutton - open with python 3.7 - then open my project - no effect
I think I have to replace the VRCharacter.ccp and the VRCharacter.h in VS with an updated UE.4.22 syntax regarding #include “AI / Navigation / NavigationSystem.h” and bool bOnNavMesh = GetWorld () -> GetNavigationSystem () -> ProjectPointToNavigation (HitResult.Location, NavLocation, TeleportProjectionExtent);
Does anyone already have a UE 4.22 solution for this?