Type Method

node

Creates a new node.

Declaration

+ (instancetype)node;

Return Value

A newly initialized node.

Discussion

The SKNode class does not draw or perform any tasks directly, so it is more common to instantiate a node subclass instead. However, you might create an SKNode object to organize other related nodes in the node tree.

See Also

First Steps

Getting Started with Nodes

Learn about the fundamental properties that provide a foundation for all other nodes.

init

Initializes a blank node.

nodeWithFileNamed:

Creates a new node by loading an archive file from the game’s main bundle.

initWithCoder:

Called when a node is initialized from an .sks file.