Graphics#z

[readonly] z : number

The z depth of this Game Object within its parent Group.
No two objects in a Group can have the same z value.
This value is adjusted automatically whenever the Group hierarchy changes.
If you wish to re-order the layering of a Game Object then see methods like Group.moveUp or Group.bringToTop.

Inherited From
Source code: gameobjects/components/Core.js (Line 177)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.