Instance Property

constraints

A list of constraints to apply to the node.

Declaration

var constraints: [SKConstraint]? { get set }

Discussion

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 Node Position or Rotation

var reachConstraints: SKReachConstraints?

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software