---
title: gridPosition
framework: gameplaykit
role: symbol
role_heading: Instance Property
path: gameplaykit/gkgridgraphnode/gridposition
---

# gridPosition

The position of the node on a discrete integer grid.

## Declaration

```swift
var gridPosition: vector_int2 { get }
```

## Discussion

Discussion You specify the position only when creating a node. When working with an array of nodes returned by the GKGraph findPath(from:to:) method, read the position from each node to determine the path for an entity in your game scene to follow.
