Adds a node to the end of the receiver’s list of child nodes.
SDKs
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
Framework
- Sprite
Kit
Declaration
func addChild(_ node: SKNode)
Parameters
node
The node to add. The node must not already have a parent.