SKScene
An object that organizes all of the active SpriteKit content.
Declaration
class SKSceneMentioned in
- Controlling User Interaction on Nodes
- Customizing the Behavior of a Node
- Getting Started with Nodes
- Subclassing Scenes Versus Assigning a Delegate
- Choosing a SpriteKit Scene Renderer
- Creating a Scene from a File
- Displaying 3D Content in a SpriteKit Scene
- Drawing SpriteKit Content in a View
- Responding to Frame-Cycle Events
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
Responding to Frame-Cycle Eventsupdate(_:)didEvaluateActions()didSimulatePhysics()didApplyConstraints()didFinishUpdate()