Contents

insertChild(_:at:)

Inserts a node into a specific position in the receiver’s list of child nodes.

Declaration

func insertChild(_ node: SKNode, at index: Int)

Parameters

  • node:

    The node to add. The node must not already have a parent.

  • index:

    The position in the array to insert the node.

Mentioned in

See Also

Modifying the Node Tree