jakobhellermann / bevy_editor_pls

In-App editor tools for bevy applications
Other
758 stars 78 forks source link

bevy_ui does not display over 3d world #103

Open blueforesticarus opened 7 months ago

blueforesticarus commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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

xx1adfasd commented 3 months ago

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