We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf01056 commit e44ce76Copy full SHA for e44ce76
1 file changed
src/scene/Systems.js
@@ -509,6 +509,21 @@ var Systems = new Class({
509
this.events.emit('start', this);
510
},
511
512
+ /**
513
+ * Called automatically by the SceneManager if the Game resizes.
514
+ * Dispatches an event you can respond to in your game code.
515
+ *
516
+ * @method Phaser.Scenes.Systems#resize
517
+ * @since 3.2.0
518
519
+ * @param {number} width - The new width of the game.
520
+ * @param {number} height - The new height of the game.
521
+ */
522
+ resize: function (width, height)
523
+ {
524
+ this.events.emit('resize', width, height);
525
+ },
526
+
527
/**
528
* Shutdown this Scene and send a shutdown event to all of its systems.
529
*
0 commit comments