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?
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.
Gotcha! Thanks for the quick reply.
Sorry to necro this, but what if I wanted to add a field to AstarData for my custom GridGraph ( I want to be able to call AstarData.active.data.turnBasedGraph )? Right now I am using a separate script to query all the graphs in active.data and return any turnBasedGraphs, is this best practice?
I’ve tried removing the .asmdef file but this caused a lot of errors that I can’t decipher.
Sounds like the best solution. Or you could use AstarPath.active.data.FindGraphsOfType(typeof(MyCustomGraphType))
Solution in my case: Unable to access Using Pathfinding; - #20 by waltermandelbrot