An object that organizes all of the active SpriteKit content.
SDKs
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
Framework
- Sprite
Kit
Declaration
class SKScene : SKEffect Node
Overview
An SKScene
object represents a scene of content in SpriteKit. A scene is the root node in a tree of SpriteKit nodes (SKNode
). These nodes provide content that the scene animates and renders for display. To display a scene, you present it from an SKView
, SKRenderer
, or WKInterface
.
SKScene
is a subclass of SKEffect
and enables certain effects to apply to the entire scene. Though applying effects to an entire scene can be an expensive operation, creativity, and ingenuity may help you find some interesting ways to use effects.