mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 05:03:37 +00:00
Triggered z-depth sort on creation.
This commit is contained in:
parent
bfd045c0dd
commit
1c4ad2400a
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,9 @@ var GameObject = new Class({
|
|||
// Will Render bitmask flags for the components Visible, Alpha, Transform and Texture respectively
|
||||
this.renderMask = 15;
|
||||
this.renderFlags = 15;
|
||||
|
||||
// Trigger a state z-depth sort
|
||||
this.state.sys.sortChildrenFlag = true;
|
||||
},
|
||||
|
||||
// For GameObject Pooling and item selection
|
||||
|
|
Loading…
Reference in a new issue