PathfindingError
The class whose instance is returned to the _OnFail
callback of the Path.UpdatePath()
method.
Contains two properties:
public PathfindingResultCode Reason
– the reason why the pathfinding failed.
Possible values:
Value | Description |
SUCCEEDED | Pathfinding finished successfully. |
PATH_DOES_NOT_EXIST | There is no path between points. This is possible if at least one of the neighborhood points is surrounded by all sides. |
TIMEOUT | The pathfinding took longer than allowed and was aborted. |
CANCELED | Pathfinding was canceled by the user or Nav3D internal logic. |
START_POINT_INSIDE_OBSTACLE | Pathfinding has been canceled because the start point of the path is inside an obstacle. |
GOAL_POINT_INSIDE_OBSTACLE | Pathfinding has been canceled because the goal point of the path is inside an obstacle. |
UNKNOWN | Internal error. |
public string Msg
– message with more detailed information about the error.