Docy Child


  • public Vector3[] Trajectory { get; } – the found path. Use this property to get the last found path. The value is true if the UpdatePath method was called and completed successfully, and no other properties of the Path object have changed since then. Use the IsValid property to verify that a value is valid.
  • public Vector3[] TrajectoryOriginal {get;} – original found path.
  • public Vector3[] TrajectoryOptimized {get;} – optimized found path.
  • public Vector3[] TrajectorySmoothed { get; } – smoothed found path. The value will be different from TrajectoryOptimized if the Smooth property is set to true.
  • public Bounds Bounds { get; } – the amount of space occupied by the found path.
  • public Vector3 Start { get; set; } – the starting point of the path.
  • public Vector3 Goal { get; set; } – the end point of the path.
  • public int SmoothRatio { get; set; } – the number of smoothing passes in relation to the minimum cell size of the search graph, by default it is set to 3. We do not recommend increasing this value unnecessarily, as this will increase the path search time if smoothing is enabled (Smooth == true property).
  • public int Timeout { get; set; } – maximum path search time. If the path search takes longer, the Action<PathfindingError> _OnFail callback will be executed if it was passed to UpdatePath().
  • public bool Smooth { get; set; } – whether it is necessary to smooth the path.
  • public bool IsValid { get; } – whether the current value of the Trajectory is not null and whether it is true for the current values ​​of the remaining properties. For example, if you called UpdatePath(), and after its successful completion you changed the value of the Start property, then the path will no longer be up-to-date and IsValid will be equal to false.
  • public bool IsPathUpdating { get; } – whether the Path instance is in the process of pathfinding.