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

TargetCamera mangles ui when an unusual ritual is performed. #17754

Closed
coolcatcoder opened this issue Feb 9, 2025 · 6 comments
Closed

TargetCamera mangles ui when an unusual ritual is performed. #17754

coolcatcoder opened this issue Feb 9, 2025 · 6 comments
Labels
A-UI Graphical user interfaces, styles, layouts, and widgets A-Windowing Platform-agnostic interface layer to run your app in C-Bug An unexpected or incorrect behavior

Comments

@coolcatcoder
Copy link

coolcatcoder commented Feb 9, 2025

Bevy version

0.15.2

What you did

I create 2 windows. I create some ui that targets the 1st window. I get rid of the 1st window. I switch the target of the ui to the 2nd window.
Minimum viable problem: https://github.com/coolcatcoder/bevy_ui_problem

What went wrong

For some reason, the ui gets horribly mangled. This does not happen if I despawn the 1st window after I switch the target.

Additional information

Before ritual:
Image
After ritual:
Image

@coolcatcoder coolcatcoder added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Feb 9, 2025
@ickshonpe ickshonpe added A-UI Graphical user interfaces, styles, layouts, and widgets A-Windowing Platform-agnostic interface layer to run your app in and removed S-Needs-Triage This issue needs to be labelled labels Feb 9, 2025
@ickshonpe
Copy link
Contributor

I think this might already be fixed in main or in one of my PRs waiting for review. #17579 should work.

@ickshonpe
Copy link
Contributor

I tried to construct an example like you described but I couldn't replicate the issue, so if you could post a minimal example that would be a big help.

@coolcatcoder
Copy link
Author

I'm trying to construct a minimal example, and it should be done at latest 12 hours after this message is sent. (It would be done sooner, but I'm not available for the majority of today, unfortunately.)

@coolcatcoder
Copy link
Author

Here is the minimal example: https://github.com/coolcatcoder/bevy_ui_problem
After you run the code, you just close the window with the ui on it, and it will switch to the other window, and get mangled.

@coolcatcoder
Copy link
Author

Just tested it on the main branch of bevy, and it works as it should, so this problem is already solved!

@coolcatcoder
Copy link
Author

(Whoops, forgot to close the issue.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-UI Graphical user interfaces, styles, layouts, and widgets A-Windowing Platform-agnostic interface layer to run your app in C-Bug An unexpected or incorrect behavior
Projects
None yet
Development

No branches or pull requests

2 participants