SimpleMoveToLocation() doesn't work

I have to be honest, I copied this code from the TopDown project. But with my code it dowsn’t work. Here is my code.

			UNavigationSystem* const NavSys = world->GetNavigationSystem();
			float const Distance = FVector::Dist(destLocation, character->GetActorLocation());
			if (NavSys && (Distance > 120.0f))
				NavSys->SimpleMoveToLocation(this, destLocation);
				GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, FString::Printf(TEXT("condition is true")));

The screen debug message is always displayed, so I think my problem is with the function SimpleMoveToLocation().
How can I make my character move to destLocation?

Have you tried using VisualLogger to see what info gets logged, or tried to step into SimpleMoveToLocation? I recommend both.


No, I have to learn how to use VisualLogger, I think I’ll use this documentation:link text
if you have any addictional documentation or tutorial please let me know!
Thank you, I’ll let you know if this solves my problem.

It’s ok, I made a huge mistake. I put a nav mesh on a map, but then I used another. Using SimpleMoveToLocation now it works! Sorry!