z_layer_2d
is both confusing and buggy, should be removed
#423
Labels
A - components
Change related to an ECS component
C - breaking change
A breaking API or behavior change
C - bug
Something isn't working
Crate versions
main
Describe the bug
z_layer_2d
for 2D effects is used in place of thetransform.z
, which 1) makes things confusing for users, and 2) seems buggy with parenting. There's really no reason for having it. Bevy'sMesh2d
andSprite
pass thetransform.z
as theTransparent2d.sort_key
value, and Hanabi should do the same.Expected behavior
Particle effect with larger Z position renders on top in 2D. That's not currently always the case.
To Reproduce
See
2d
example; disable the animation systemupdate_plane()
and changez_layer_2d
andtransform.z
of the particle effect: the former moves the particles in front of and behind the quad, the latter does nothing.The text was updated successfully, but these errors were encountered: