Edit

Share via


GKGraphNode.FindPathTo(GKGraphNode) Method

Definition

Finds the shortest path from this GKGraphNode to goalNode.

[Foundation.Export("findPathToNode:")]
public virtual GameplayKit.GKGraphNode[] FindPathTo (GameplayKit.GKGraphNode goalNode);
abstract member FindPathTo : GameplayKit.GKGraphNode -> GameplayKit.GKGraphNode[]
override this.FindPathTo : GameplayKit.GKGraphNode -> GameplayKit.GKGraphNode[]

Parameters

goalNode
GKGraphNode

Returns

The shortest path, in-order, from this to startNode. If no path exists, returns an empty array.

Attributes

Applies to