Type Function Library composer.* Return value none Revision Current Public Release (2014.2393) Keywords composer, scene, remove, removeHidden See also composer.removeScene()
This function removes (or optionally recycles) all scenes except for the currently active scene. A destroy event is first dispatched to all of these scenes.
To recycle the scenes instead of removing them entirely, you may set the
shouldRecycle parameter to
true — this means that each scene's
self.view display group will be removed, but their scene objects will remain in memory. If
shouldRecycle is omitted or set to
false (default), the scenes will be removed entirely, including their scene objects.
composer.removeHidden( shouldRecycle )
-- Completely removes all scenes except for the currently active scene composer.removeHidden()
-- Recycles all scenes except for the currently active scene composer.removeHidden( true )
© 2014 Corona Labs Inc. All Rights Reserved. (Last updated: 31-Jul-2014)
Help us help you! If you notice a problem with this page, please report it.