Click or drag to resize

AStar2DGetPointPath Method

Returns an array with the points that are in the path found by AStar2D between the given points. The array is ordered from the starting point to the ending point of the path.

Note: This method is not thread-safe. If called from a Thread, it will return an empty Vector2 and will print an error message.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Vector2[] GetPointPath(
	int fromId,
	int toId
)

Parameters

fromId
Type: SystemInt32

[Missing <param name="fromId"/> documentation for "M:Godot.AStar2D.GetPointPath(System.Int32,System.Int32)"]

toId
Type: SystemInt32

[Missing <param name="toId"/> documentation for "M:Godot.AStar2D.GetPointPath(System.Int32,System.Int32)"]

Return Value

Type: Vector2

[Missing <returns> documentation for "M:Godot.AStar2D.GetPointPath(System.Int32,System.Int32)"]

See Also