A* Pathfinding Project

Graph disappear when Play unless PathFinder's gameObject is select


#1

Unity 2019.3.0f5 ,Version 4.3.10 , Graph type GridGraph
When I enter PlayMode scanned graph disappeared (graph remove from PathFinder component) and it throw error in Navmesh update.cs that AstarPath.active.isScanning is Null.
Toggle scan on awake or manual scan at star still give the same result.
If PathFinder’s gameObject is selected in editor everything work correctly .


#2

Hey,

I was unable to reproduce this issue.
Are you able to reproduce this in an empty project?

Also if possible could you post the entire stack trace?


#3

Setup Pathfinder in the new scene(same project) the problem still occurs. Can’t reproduce on a new project.
Here is what I got from Unity console.

Blockquote
NullReferenceException: Object reference not set to an instance of an object
Pathfinding.NavmeshUpdates.Update () (at Assets/AstarPathfindingProject/Navmesh/NavmeshUpdates.cs:166)
AstarPath.Update () (at Assets/AstarPathfindingProject/Core/AstarPath.cs:859)


#4

Sounds like something might have gone wrong when importing the package. Try to delete the AstarPathfindingProject folder and reimport the package.