A* Pathfinding Project

AIPath script can't reference my scripts


#1

Hi,

So, I updated from version 4.1.16 to the latest 4.2.2 Using Unity 2018.2.14f1

And just like I usually do when I update the project, I edit the OnTargetReached function on the AIPath script and I also add few references to some other scripts I need to do things with when an agent arrives at the destination. Bu now when I try to reference any of the scripts in my games it highlights it as if it doesn’t exist at all, not even autocomplete can find any of my scripts to be used within the AIPath script.

Any help?

Thanks,


#2

Hi

The 4.2 version uses the new assembly definition files, if you are using those too you will need to reference the pathfinding assembly definition file for it to work.
See https://docs.unity3d.com/Manual/ScriptCompilationAssemblyDefinitionFiles.html