Contents

SKScene

An object that organizes all of the active SpriteKit content.

Declaration

class SKScene

Mentioned in

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 WKInterfaceSKScene.

SKScene is a subclass of SKEffectNode 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.

Topics

Creating a Scene from a File

Creating a Scene Programmatically

Stretching Content to Fit the View

Configuring the Viewport

Responding to Loading and Resizing Events

Responding to Frame-Cycle Events

Configuring a Delegate

Setting the Background Appearance

Configuring Physics Properties

Adding Positional Audio

Converting Between Coordinate Systems

See Also

Essentials