The name 'Astarpath' does not exist in the current context

Hi,

I am currently working on a project where the map changes during runtime (opening a bridge etc.).
Now, once I added using Pathfinding; in the top of my script and then try to reach AstarPath.active.Scan(), I get the following message:
The name ‘Astarpath’ does not exist in the current context

I’m all new to Unity and I was wondering if I need to change something in the AstarPathfindingProject.asmdef file. Because once I delete the file, I can access the Astarpath class, but ofcourse it doesn’t work.

Hopefully you can get me out of this. Thanks!

Hi

Are you sure you spelled that correctly? It’s supposed to be AstarPath, not Astarpath.

Also make sure you are not using Unity 2019.3.12, which has a bug. Use 2019.3.13 instead.

Thanks! It indeed was the Unity version.

1 Like

I’ve gotten this same issue in 2020.1.2f1, will we have to upgrade out unity version to fix this?