Added CameraManager.resize method.

This commit is contained in:
Richard Davey 2018-02-28 17:19:10 +00:00
parent e6059f65cd
commit 31f331de98

View file

@ -431,6 +431,23 @@ var CameraManager = new Class({
}
},
/**
* Resizes all cameras to the given dimensions.
*
* @method Phaser.Cameras.Scene2D.CameraManager#resize
* @since 3.2.0
*
* @param {number} width - The new width of the camera.
* @param {number} height - The new height of the camera.
*/
resize: function (width, height)
{
for (var i = 0, l = this.cameras.length; i < l; ++i)
{
this.cameras[i].setSize(width, height);
}
},
/**
* [description]
*