---
title: SKScene
framework: spritekit
role: symbol
role_heading: Class
path: spritekit/skscene
---

# SKScene

An object that organizes all of the active SpriteKit content.

## Declaration

```swift
class SKScene
```

## Mentioned 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

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 from a File](spritekit/creating-a-scene-from-a-file.md)

### Creating a Scene Programmatically

- [init(size:)](spritekit/skscene/init(size:).md)
- [size](spritekit/skscene/size.md)

### Stretching Content to Fit the View

- [Scaling a Scene’s Content to Fit the View](spritekit/scaling-a-scene-s-content-to-fit-the-view.md)
- [scaleMode](spritekit/skscene/scalemode.md)
- [SKSceneScaleMode](spritekit/skscenescalemode.md)

### Configuring the Viewport

- [Positioning a Scene’s Origin Within its View](spritekit/positioning-a-scene-s-origin-within-its-view.md)
- [camera](spritekit/skscene/camera.md)
- [anchorPoint](spritekit/skscene/anchorpoint.md)

### Responding to Loading and Resizing Events

- [sceneDidLoad()](spritekit/skscene/scenedidload().md)
- [didChangeSize(_:)](spritekit/skscene/didchangesize(_:).md)
- [willMove(from:)](spritekit/skscene/willmove(from:).md)
- [didMove(to:)](spritekit/skscene/didmove(to:).md)

### Responding to Frame-Cycle Events

- [Responding to Frame-Cycle Events](spritekit/responding-to-frame-cycle-events.md)
- [update(_:)](spritekit/skscene/update(_:).md)
- [didEvaluateActions()](spritekit/skscene/didevaluateactions().md)
- [didSimulatePhysics()](spritekit/skscene/didsimulatephysics().md)
- [didApplyConstraints()](spritekit/skscene/didapplyconstraints().md)
- [didFinishUpdate()](spritekit/skscene/didfinishupdate().md)

### Configuring a Delegate

- [Subclassing Scenes Versus Assigning a Delegate](spritekit/subclassing-scenes-versus-assigning-a-delegate.md)
- [delegate](spritekit/skscene/delegate.md)
- [SKSceneDelegate](spritekit/skscenedelegate.md)

### Setting the Background Appearance

- [Creating a Scene with a Transparent Background](spritekit/creating-a-scene-with-a-transparent-background.md)
- [view](spritekit/skscene/view.md)
- [backgroundColor](spritekit/skscene/backgroundcolor.md)

### Configuring Physics Properties

- [physicsWorld](spritekit/skscene/physicsworld.md)

### Adding Positional Audio

- [Using Audio Nodes with the Scene’s Listener](spritekit/using-audio-nodes-with-the-scene-s-listener.md)
- [listener](spritekit/skscene/listener.md)
- [audioEngine](spritekit/skscene/audioengine.md)

### Converting Between Coordinate Systems

- [convertPoint(fromView:)](spritekit/skscene/convertpoint(fromview:).md)
- [convertPoint(toView:)](spritekit/skscene/convertpoint(toview:).md)

## Relationships

### Inherits From

- [SKEffectNode](spritekit/skeffectnode.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [GKSceneRootNodeType](gameplaykit/gkscenerootnodetype.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
- [NSStandardKeyBindingResponding](appkit/nsstandardkeybindingresponding.md)
- [NSTouchBarProvider](appkit/nstouchbarprovider.md)
- [NSUserActivityRestoring](appkit/nsuseractivityrestoring.md)
- [SKWarpable](spritekit/skwarpable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [UIActivityItemsConfigurationProviding](uikit/uiactivityitemsconfigurationproviding.md)
- [UICoordinateSpace](uikit/uicoordinatespace.md)
- [UIFocusEnvironment](uikit/uifocusenvironment.md)
- [UIFocusItem](uikit/uifocusitem.md)
- [UIFocusItemContainer](uikit/uifocusitemcontainer.md)
- [UIPasteConfigurationSupporting](uikit/uipasteconfigurationsupporting.md)
- [UIResponderStandardEditActions](uikit/uiresponderstandardeditactions.md)
- [UIUserActivityRestoring](uikit/uiuseractivityrestoring.md)

## See Also

### Essentials

- [Drawing SpriteKit Content in a View](spritekit/drawing-spritekit-content-in-a-view.md)
- [Nodes for Scene Building](spritekit/nodes-for-scene-building.md)
