Called when a node is initialized from an .sks file.
SDKs
- iOS 8.1+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
Framework
- Sprite
Kit
Declaration
init?(coder aDecoder: NSCoder)
Called when a node is initialized from an .sks file.
SDKs
Framework
init?(coder aDecoder: NSCoder)
Learn about the fundamental properties that provide a foundation for all other nodes.
init()
Initializes a blank node.
init?(file Named: String)
Creates a new node by loading an archive file from the game’s main bundle.