MCPcopy
hub / github.com/phaserjs/phaser / setScale

Method setScale

types/phaser.d.ts:20495–20495  ·  view source on GitHub ↗

* Sets the scale of this Game Object. * @param x The horizontal scale of this Game Object. Default 1. * @param y The vertical scale of this Game Object. If not set it will use the `x` value. Default x. * @returns This Game Object instance.

(x?: number, y?: number)

Source from the content-addressed store, hash-verified

20493 * @returns This Game Object instance.
20494 */
20495 setScale(x?: number, y?: number): this;
20496 /**
20497 * Sets the x position of this Game Object.
20498 * @param value The x position of this Game Object. Default 0.

Callers 13

FitToRegionFunction · 0.80
Transform.jsFile · 0.80
Render.jsFile · 0.80
DynamicTexture.jsFile · 0.80
TextureManager.jsFile · 0.80
BuildGameObjectFunction · 0.80
BitmapText.jsFile · 0.80
InputPlugin.jsFile · 0.80
createMethod · 0.80
createMethod · 0.80
helper.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected