---
title: referenceNode
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skconstraint/referencenode
---

# referenceNode

The node whose coordinate system should be used to apply the constraint.

## Declaration

```swift
var referenceNode: SKNode? { get set }
```

## Discussion

Discussion The default value is nil, meaning that the coordinate system of the node’s parent is used to apply the constraint. If another node is specified, all positions are converted into this node’s coordinate system before the constraint is applied.
