Instance Property

referenceNode

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

Declaration

var referenceNode: SKNode? { get set }

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.