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

bevy_ui does not display over 3d world #103

Open
blueforesticarus opened this issue Apr 19, 2024 · 4 comments
Open

bevy_ui does not display over 3d world #103

blueforesticarus opened this issue Apr 19, 2024 · 4 comments

Comments

@blueforesticarus
Copy link

I have a game that has a single 3d camera, a 3d scene, and also ui nodes. Without using bevy_editor_pls the ui overlays over the 3d scene.

If EditorPlugin::default() is added, then the game view does not have the overlay, nor do the 3d editor cameras, the ui is visible only in the editor under the 2d camera option.

@blueforesticarus
Copy link
Author

blueforesticarus commented Apr 19, 2024

adding IsDefaultUiCamera to my camera solved this for me.

Perhaps there is some way we could avoid the ui defaulting to the editor 2d camera

@guyguy2001
Copy link

I have the same issue in a 2D project as well.
I would like to have the UI appear on both, not just the game camera - so for me isn't just about defaulting, but also the editor camera "proxying" the main camera better

@blueforesticarus
Copy link
Author

Another related issue I have is that the top egui bar seems to cover up part of my ui.

@xx1adfasd
Copy link

When using bevy_editor_pls and YarnSpinner's Example, (which uses bevy_ui), the problem happens too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants