Methods that, when implemented, allow any class to participate in the SpriteKit render loop callbacks.
- iOS 8.0+
- macOS 10.10+
- tvOS 9.0+
- watchOS 2.0+
SKScene 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
SKScene methods allows you to add logic at any step of the loop.