Instance Method

resolve()

Loads the reference node’s content and adds it as a new child node.

Declaration

func resolve()

Discussion

The archive is deserialized and the root node is added as a child of the reference node. If this method is called on a reference node whose content is already loaded, the existing node tree is discarded and replaced with a fresh copy of the archive’s data.

SpriteKit calls this method automatically if the scene renders the reference node and the reference node has not previously been loaded.