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 camera special-casing causes problems #9483

Open
aevyrie opened this issue Aug 18, 2023 · 1 comment
Open

bevy_ui camera special-casing causes problems #9483

aevyrie opened this issue Aug 18, 2023 · 1 comment
Labels
A-Rendering Drawing game state to the screen A-UI Graphical user interfaces, styles, layouts, and widgets C-Feature A new feature, making something new possible

Comments

@aevyrie
Copy link
Member

aevyrie commented Aug 18, 2023

I was surprised to learn that bevy ui does not simply have a dedicated camera that can be ordered/layered amongst all other cameras. Instead, bevy_ui automatically piggybacks on all cameras, and must be enabled/disabled.

Working on my picking plugin, I need a way to aggregate hit tests across many cameras for a given render target. However, because bevy_ui is special, I cannot do this without leaking bevy_ui specific constraints into the picking plugin.

I don't think this design decision is necessary, and if anything adds complexity instead of removing it. I am able to work with egui and other third party UI systems because they are not special, they follow the same rules as everything else and need their own camera that is ordered.

@aevyrie aevyrie added C-Feature A new feature, making something new possible S-Needs-Triage This issue needs to be labelled A-Rendering Drawing game state to the screen A-UI Graphical user interfaces, styles, layouts, and widgets and removed S-Needs-Triage This issue needs to be labelled labels Aug 18, 2023
@nicopap
Copy link
Contributor

nicopap commented Aug 18, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen A-UI Graphical user interfaces, styles, layouts, and widgets C-Feature A new feature, making something new possible
Projects
None yet
Development

No branches or pull requests

2 participants