Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gizmos draw below UI #18177

Open
torsteingrindvik opened this issue Mar 6, 2025 · 1 comment
Open

Gizmos draw below UI #18177

torsteingrindvik opened this issue Mar 6, 2025 · 1 comment
Labels
A-Gizmos Visual editor and debug gizmos A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior S-Needs-Investigation This issue requires detective work to figure out what's going wrong

Comments

@torsteingrindvik
Copy link
Contributor

Bevy version

0.15.3

Bug

i have blocked out some UI using CSS grids, see the image:

Image

I removed the background color on some of the middle UI parts such that the gizmos are visible.

If I don't spawn the grid CSS hierarchy at all:

Image

I expected to see all of these gizmos on top of the UI in the first image.

I have tried to make gizmos belong to render layers=1 via gizmo configs and having an additional camera with order=1, render layers=1 in order to render on top, but this had no effect.

@torsteingrindvik torsteingrindvik added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Mar 6, 2025
@alice-i-cecile alice-i-cecile added A-Gizmos Visual editor and debug gizmos A-UI Graphical user interfaces, styles, layouts, and widgets S-Needs-Investigation This issue requires detective work to figure out what's going wrong A-Rendering Drawing game state to the screen and removed S-Needs-Triage This issue needs to be labelled A-UI Graphical user interfaces, styles, layouts, and widgets labels Mar 6, 2025
@alice-i-cecile
Copy link
Member

alice-i-cecile commented Mar 6, 2025

Long-term, I think the fix is to make UI a normal camera-driven element with an explicit UI camera. In the shorter term though, perhaps there's a workaround I don't know about. Check how the UI debug tool works?

I definitely think that this should be configurable, but I think the current behavior (gizmos below UI) is likely the right default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Gizmos Visual editor and debug gizmos A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior S-Needs-Investigation This issue requires detective work to figure out what's going wrong
Projects
None yet
Development

No branches or pull requests

2 participants