Instance Property


Specifies the list of constraints to apply to the node.


var constraints: [SKConstraint]? { get set }


Assign an array of SKConstraint objects to the node. The scene processes these constraints before the scene is rendered. The constraints are processed in array order. If multiple nodes in the node tree have constraints, there is no guaranteed order that the nodes are processed in.

See Also

Constraining a Node’s Behavior Relative to Other Nodes

var reachConstraints: SKReachConstraints?

Specifies the reach constraints to apply to the node when executing a reach action.