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

Method setMask

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

* Sets the mask that this Game Object will use to render with. * * The mask must have been previously created and must be a GeometryMask. * This only works in the Canvas Renderer. * In WebGL, use a Mask filter instead (see {@link P

(mask: Phaser.Display.Masks.GeometryMask)

Source from the content-addressed store, hash-verified

19548 * @returns This Game Object instance.
19549 */
19550 setMask(mask: Phaser.Display.Masks.GeometryMask): this;
19551 /**
19552 * Clears the mask that this Game Object was using.
19553 *

Callers 1

Mask.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected