Class

SKCameraNode

A node that determines which parts of the scene are visible within a view.

Declaration

class SKCameraNode : SKNode

Overview

If you don't use a camera in your scene, you control the visible portion of a scene using its anchorPoint property.

Topics

First Steps

Getting Started with a Camera

Learn the semantics of using a camera in your scene.

Node Visibility

Check whether a particular node is onscreen.

func containedNodeSet() -> Set<SKNode>

Finds nodes that are visible in the camera's viewport.

func contains(SKNode) -> Bool

Checks to see if a node is visible in the camera’s viewport.

See Also

Base Nodes

Using Base Nodes to Lay Out SpriteKit Content

Use nonvisual nodes to define the layout of a scene.

class SKNode

The base class of all SpriteKit nodes.

class SKReferenceNode

A node that's defined in an archived .sks file.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software