- Home /
CalculatePath always returns false when using component based NavMeshSurface.
I'm doing a very simple CalculatePath() call and no matter what I do it always returns false. I've tried NavMesh.CalculatePath(), and calling from the agent's CalculatePath function.
I'm using the NavMesh component system downloaded from git and NOT the standard NavMesh system.
When I switch back to the standard NavMesh system CalculatePath() returns true as normal.
Answer by Ieya · Aug 24, 2021 at 08:31 AM
Same for me. I migrate from the regular system to the git repo in order to bake my navMesh at runtime with NavMeshSurface. A component was supposed to compare a bunch of path to use the shortest, it was working on my old project, not anymore. The most disturbing is that SetDestination still work like a charm.
I'll roll back to the regular system until I see any improvement. Now I have to find another way to runtime back my navMesh.
Sorry to hear I’m not alone. I’ve been doing a raw world space distance comparison in the mean time.
Your answer
Follow this Question
Related Questions
My NavMeshAgent doesn't move at all!,Why my NavMeshAgent doesn't move at all? 0 Answers
Checking if a non-walkable layer is blocking the path? (NavMeshAgent) 0 Answers
NavMeshAgent resume original position and facing direction C# 0 Answers
Player's last location as a Transform 1 Answer
Access navmeshagent calculation data? 0 Answers