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

Method setTexture

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

* Sets the texture and frame this Game Object will use to render with. * * Textures are referenced by their string-based keys, as stored in the Texture Manager. * * Calling this method will modify the `width` and `height` properti

(key: string | Phaser.Textures.Texture, frame?: string | number, updateSize?: boolean, updateOrigin?: boolean)

Source from the content-addressed store, hash-verified

20128 * @returns This Game Object instance.
20129 */
20130 setTexture(key: string | Phaser.Textures.Texture, frame?: string | number, updateSize?: boolean, updateOrigin?: boolean): this;
20131 /**
20132 * Sets the frame this Game Object will use to render with.
20133 *

Callers 15

TweenFrameData.jsFile · 0.65
ObjectHelper.jsFile · 0.65
MatterSprite.jsFile · 0.65
MatterImage.jsFile · 0.65
DynamicTexture.jsFile · 0.65
TextureManager.jsFile · 0.65
Blend.jsFile · 0.65
Displacement.jsFile · 0.65
Mask.jsFile · 0.65
Wipe.jsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected