We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6059f6 commit 31f331dCopy full SHA for 31f331d
1 file changed
src/cameras/2d/CameraManager.js
@@ -431,6 +431,23 @@ var CameraManager = new Class({
431
}
432
},
433
434
+ /**
435
+ * Resizes all cameras to the given dimensions.
436
+ *
437
+ * @method Phaser.Cameras.Scene2D.CameraManager#resize
438
+ * @since 3.2.0
439
440
+ * @param {number} width - The new width of the camera.
441
+ * @param {number} height - The new height of the camera.
442
+ */
443
+ resize: function (width, height)
444
+ {
445
+ for (var i = 0, l = this.cameras.length; i < l; ++i)
446
447
+ this.cameras[i].setSize(width, height);
448
+ }
449
+ },
450
+
451
/**
452
* [description]
453
*
0 commit comments