-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
return_after_run example is broken #6311
Comments
It seems that we're just not allowed to do what we're doing in that example anymore. https://github.com/rust-windowing/winit/blob/v0.27.4/src/event_loop.rs#L82 So I guess we just need to find another way to demonstrate |
Yup... let's try to find a good use case for it. Putting this in the 0.9 milestone. Worst case fix is to remove the second app and show that the final |
Some background info in #167 for anyone digging into this. I still don't feel informed about how people are using this feature. |
I believe this is a critical feature for users outside of gaming; As an example, take this feature:
|
I'm not sure I see the relation between being able to run multiple windows one after the other and transferring entities between worlds? |
# Objective - Fixes bevyengine#6311 - Make it clearer what should be done in the example (close the Bevy app window) ## Solution - Remove the second windowed Bevy App [since winit does not support this](https://github.com/rust-windowing/winit/blob/v0.27.4/src/event_loop.rs#L82-L83) - Add title to the Bevy window asking the user to close it This is more of a quick fix to have a working example. It would be nicer if we had a small real usecase for this functionality. Another alternativ that I tried out: If we want to showcase a second Bevy app as it was before, we could still do this as long as one of them does not have a window. But I don't see how this is helpful in the context of the example, so I stuck with only one Bevy app and a simple print afterwards.
There are multiple issues with this example.
The
ClearColor
which is meant to visually distinguish the first app from the next is never shown because there are no cameras. This has been broken between Bevy 0.7 and Bevy 0.8 with the Camera Driven Rendering stuff.Since the recent winit upgrade, we get this error after the first window is closed.
Additional information
The text was updated successfully, but these errors were encountered: