iosobjective-csprite-kitsksceneskview

Difference between paused property of SKScene and SKView


I am pausing my SKScene using the following code:

self.paused = YES;

However, according to this answer by Andrey Gordeev, one can also pause a scene using this line:

self.view.paused = YES;

I would like to understand what difference it would make to call the either (or both) to pause a scene.


Solution

  • Pausing SKView stops calling update: method for SKScene.

    Pausing SKScene doesn't do that.

    I usually pause both SKScene and SKView

    EDIT:

    As of iOS9 pausing the scene will pause the update: method.