편집

다음을 통해 공유


GKGraphNode.FindPathFrom(GKGraphNode) Method

Definition

Returns the shortest path from startNode to this GKGraphNode.

[Foundation.Export("findPathFromNode:")]
public virtual GameplayKit.GKGraphNode[] FindPathFrom (GameplayKit.GKGraphNode startNode);
abstract member FindPathFrom : GameplayKit.GKGraphNode -> GameplayKit.GKGraphNode[]
override this.FindPathFrom : GameplayKit.GKGraphNode -> GameplayKit.GKGraphNode[]

Parameters

startNode
GKGraphNode

Returns

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

Attributes

Applies to