Placing sceneGroup in forward declaration section

I often need to move sceneGroup to the top of my Lua module file and remove local from “sceneGroup = self.view” in scene:create, scene:show, etc because I add stuff to the scene using sceneGroup:insert in functions.

Does that mean the scene will not be clean up automatically?

Also what about images and audio files declared the same way (local at the very top) to be accessed from all the module functions but are inserted into the scene mentioned above. Are these cleaned automatically or not?

It should still clean up.  It’s physically part of the “scene” object. 

No anything not in the scene’s view group will not be automatically cleaned.  You cannot add audio, only display objects.

Rob

It should still clean up.  It’s physically part of the “scene” object. 

No anything not in the scene’s view group will not be automatically cleaned.  You cannot add audio, only display objects.

Rob