SpriteNode and dealloc

If you send a SpriteNode off the view and into the great beyond, will Swift eventually release it from memory?

The node’s parent keeps a reference to it, so it’ll stick around wherever you move it, unless it or it’s parent are removed from the scene.

You can check if the node has moved out of the bounds in your update method, and remove it if it has

This topic was automatically closed after 166 days. New replies are no longer allowed.