A* Pathfinding Project

Accessing classes outside of the Pathfinding namespace


#1

I’ve tried to access the Player class from AIDestinationSetter it with and without namespaces, but to no avail. What do I need to do to be able to access it?


#2

Hi

The package uses Unity assembly definition files (https://docs.unity3d.com/Manual/ScriptCompilationAssemblyDefinitionFiles.html) which means you will not be able to access anything else. You can remove the .asmdef files in the package and it will probably work, however to minimize issues when you upgrade the package I would recommend that you copy the contents of the AIDestinationSetter into a new script that you modify in any way you like.


#3

Gotcha! Thanks for the quick reply.