Triggered z-depth sort on creation.

This commit is contained in:
photonstorm 2017-07-07 18:12:57 +01:00
parent bfd045c0dd
commit 1c4ad2400a

View file

@ -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