We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9efa5ef commit d050b84Copy full SHA for d050b84
1 file changed
src/gameobjects/Events.js
@@ -36,6 +36,11 @@ Phaser.Events = function (sprite) {
36
*/
37
this.onRemovedFromGroup = new Phaser.Signal();
38
39
+ /**
40
+ * @property {Phaser.Signal} onRemovedFromWorld - This signal is dispatched if this item or any of its parents are removed from the game world.
41
+ */
42
+ this.onRemovedFromWorld = new Phaser.Signal();
43
+
44
/**
45
* @property {Phaser.Signal} onDestroy - This signal is dispatched when the parent is destoyed.
46
@@ -131,6 +136,7 @@ Phaser.Events.prototype = {
131
136
this.onDestroy.dispose();
132
137
this.onAddedToGroup.dispose();
133
138
this.onRemovedFromGroup.dispose();
139
+ this.onRemovedFromWorld.dispose();
134
140
this.onKilled.dispose();
135
141
this.onRevived.dispose();
142
this.onOutOfBounds.dispose();
0 commit comments