diff --git a/src/gameobjects/shape/Shape.js b/src/gameobjects/shape/Shape.js index ae460ba5c..5f0868403 100644 --- a/src/gameobjects/shape/Shape.js +++ b/src/gameobjects/shape/Shape.js @@ -327,6 +327,27 @@ var Shape = new Class({ return this; }, + /** + * Sets the display size of this Shape. + * + * Calling this will adjust the scale. + * + * @method Phaser.GameObjects.Shape#setDisplaySize + * @since 3.53.0 + * + * @param {number} width - The display width of this Shape. + * @param {number} height - The display height of this Shape. + * + * @return {this} This Shape instance. + */ + setDisplaySize: function (width, height) + { + this.displayWidth = width; + this.displayHeight = height; + + return this; + }, + /** * Internal destroy handler, called as part of the destroy process. *