Type Function Library composer.* Return value none Revision Release 2024.3703 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] )
Boolean. If the scenes should be recycled, but not removed entirely, set this parameter to true
. Default is false
.
-- Completely removes all scenes except for the currently active scene composer.removeHidden()
-- Recycles all scenes except for the currently active scene composer.removeHidden( true )
© 2020-2024 Solar2D All Rights Reserved.
Help us help you! If you notice a problem with this page, please report it.