destroy

Type Event
Revision Release 2024.3703
Keywords composer, scene, destroy, event
See also composer.*
composer.removeScene()
composer.removeHidden()
composer.hideOverlay()

Overview

This event is dispatched before a scene is recycled and it's a direct result of calling composer.removeScene(), composer.removeHidden(), or composer.hideOverlay(). This event may also be triggered if the OS issues a low memory warning and the composer.recycleAutomatically property is set to true (default).

This event will not be dispatched if the scene's self.view property doesn't exist — for example, if the scene has been recycled or self.view was never created.

Properties

event.name