GKGraphNode.FindPathFrom(GKGraphNode) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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