Unstable z-order sorting when using multiple root UI nodes #2569
Labels
A-Rendering
Drawing game state to the screen
A-UI
Graphical user interfaces, styles, layouts, and widgets
C-Bug
An unexpected or incorrect behavior
S-Needs-Investigation
This issue requires detective work to figure out what's going wrong
Bevy version
0.5
Operating system & version
Windows 10
What you did
What you expected to happen
The square appears, or doesn't.
What actually happened
Adding the marker component to the entity changes the relative order of the square and the HUD, causing the square to disappear.
Removing or tweaking most of the other values (window size, clear_color, presence of the child on the HUD) also tends to change the behavior. Altering colors or changing the square's size seems to preserve the surprising behavior.
Additional information
Using multiple root UI nodes is currently (silently) unsupported; this . I think this is z-fighting in very unstable and surprising ways. #1211 attempts to allow for multiple UI root nodes.
@automeowtion
on Discord reported this bug and gave the reproduction shown above here.The text was updated successfully, but these errors were encountered: