GKGraphNode.FindPathTo(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.
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