How to return PathLength?

How can I get the path length as a float number in the console?
I am using AI Destination Setter, Seeker and AI Path components.
Thanks in advance

Hi

If you have a path object then you can use path.GetTotalLength().
You can use ai.GetRemainingPath(…) to get a list of points remaining in the path, and then sum up the distances manually. This will work well even when the ai is moving.