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

Method setDisplayOrigin

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

* Sets the display origin of this Game Object. * The difference between this and setting the origin is that you can use pixel values for setting the display origin. * @param x The horizontal display origin value. Default 0. * @param y The vertical d

(x?: number, y?: number)

Source from the content-addressed store, hash-verified

19638 * @returns This Game Object instance.
19639 */
19640 setDisplayOrigin(x?: number, y?: number): this;
19641 /**
19642 * Updates the Display Origin cached values internally stored on this Game Object.
19643 * You don't usually call this directly, but it is exposed for edge-cases where you may.undefined

Callers 3

Light.jsFile · 0.80
InputPlugin.jsFile · 0.80
Origin.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected