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

Method setDepth

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

* Sets the depth of this Game Object. If the `value` argument is not provided, the depth defaults to `0`. * * The depth is also known as the 'z-index' in some environments, and allows you to change the rendering order * of Game Objects, without act

(value: number)

Source from the content-addressed store, hash-verified

18335 * @returns This Game Object instance.
18336 */
18337 setDepth(value: number): this;
18338 /**
18339 * Sets this Game Object to be at the top of the display list, or the top of its parent container.
18340 *

Callers 8

World.jsFile · 0.80
World.jsFile · 0.80
InputPlugin.jsFile · 0.80
createMethod · 0.80
createMethod · 0.80
helper.test.jsFile · 0.80
Depth.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected