Contents

SKSceneDelegate

Methods that, when implemented, allow any class to participate in the SpriteKit render loop callbacks.

Declaration

protocol SKSceneDelegate : NSObjectProtocol

Mentioned in

Overview

The SKSceneDelegate protocol is used to implement a delegate to be called whenever the scene is being animated. Typically, you supply a delegate when you want to use a scene without requiring the scene to be subclassed. The methods in this protocol all correspond to methods implemented by the SKScene class. If the delegate implements a particular method, that method is called instead of the corresponding method on the scene object.

When processing a scene, SpriteKit runs a loop that processes and renders the scene. The SKSceneDelegate methods allows you to add logic at any step of the loop.

[Image]

Topics

Handling Animation Events

See Also

Configuring a Delegate