---
title: path
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skshapenode/path
---

# path

The path that defines the shape.

## Declaration

```swift
var path: CGPath? { get set }
```

## Mentioned in

Getting Started with Shape Nodes

## Discussion

Discussion The path is defined in the node’s coordinate space.

## See Also

### Creating a Shape from a Path

- [init(path:)](spritekit/skshapenode/init(path:).md)
- [init(path:centered:)](spritekit/skshapenode/init(path:centered:).md)
