Lots of error after importing the package in Unit 5.0.1f1

I’m getting lots of errors like this:

Assets/AstarPathfindingProject/ExampleScenes/Example12_Procedural/ProceduralGridMover.cs(218,47): error CS1503: Argument #1' cannot convert GridNode’ expression to type `Pathfinding.GridNode

I’m using the latest stable free version of A* from the website.

I’ve tried to add a screenshot as link and upload it as well, the forum wont let me because I’m a new user… However, there are really lots of these errors after loading the package.

Is it me doing something wrong?

Hi

Very likely you have another class in your project called GridNode. Try putting the other class in a namespace or rename it and it should work.

Ahhh, now I feel like an idiot, you’re right. :smile: C# error message could be a little more clear in this case.

May I ask a simple question, that might save me time: Will your plugin allow me to use the grid based pathfinding for a game that is basically a boardgame (clone of Heroquest) but is going to have different heights and stairs. Will the grid based node system work with that? By a stair think of a ramp with 2 grid fields on it on a different height.

1 Like

Hi

Great that you got it working.

Yeah, that can be done.