MCPcopy Index your code
hub / github.com/phaserjs/phaser / setOriginFromFrame

Method setOriginFromFrame

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

* Sets the origin of this Game Object based on the Pivot values in its Frame. * If the Frame has a custom pivot point defined, the origin is set to match it. * If the Frame does not have a custom pivot, this method falls back to `setOrigin()`, * res

()

Source from the content-addressed store, hash-verified

19630 * @returns This Game Object instance.
19631 */
19632 setOriginFromFrame(): this;
19633 /**
19634 * Sets the display origin of this Game Object.
19635 * The difference between this and setting the origin is that you can use pixel values for setting the display origin.

Callers 3

Image.jsFile · 0.80
Sprite.jsFile · 0.80
Origin.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected