PathEndingCondition missing

Hello

I’m trying to make my object finish at the end of the path instead of a few units in front of it, for that purpose
I’m trying to use PathEndingCondition but i get this error:

Assests/Astar.cs(27,28): error CS0246: The type or namespace name ‘PathEndingCondition’ could not be found.

I have made sure that i am using the correct namespace.

Hi

Which version of the system?
Really sure you have
using Pathfinding; at the top of the script?

It might due to conflict with some other scripts.
Try changing that line to Pathfinding.Whatever it is~

I’m using what i believe is the latest version “3.2.5.1” with version 4.2.0f4 of unity

I’ve double checked that i’m using the correct namespace, I’ve been working off the example found here:
http://arongranberg.com/astar/docs/_ending_condition_8cs-example.php

and have even tried copy pasting it word for word and get the same issue.
(In regards to the pathendingcondition in the example i have tried with both ABPathEndingCondition and just PathEndingCondition)

edit-I have also tried Burdocks’ suggestion.

Ok, could you open the file AstarPathfindingProjects/Pathfinders/XPath.cs, it should be defined in that file.

Well i guess that is the problem, that folder only contains ABPath.cs for me. I am importing the pathfinding package by double clicking the package file while i have the relevant project open in unity. I have also imported via the unity assets>ImportPackage>custompackage and get the same result.

Is there another version i can download or a different method of installation i can try?

Are you using the Pro version ? If so I will PM you my Pathfinders folder :slight_smile:

Na i’m using the free version :frowning:

Hm… possibly that script was not in the free version before…

Here is the script http://pastebin.com/w0tVR6ZB
Please remove the #if FALSE … #endif so that it will actually compile.

Right, sorry, that script was from the beta. I didn’t think I had changed that many things in it, but some were apparently changed. Try changing that to NodeRun instead.
You can remove everything but the actual PathEndingCondition class.

Hmm XPath can’t find the type or namespace name ‘PathNode’ i assume that means more than just the xpath file is missing?

Awesome! that works, many thanks for the help.