-
-
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
Fix alien_cake_addict
example
#16281
Fix alien_cake_addict
example
#16281
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much nicer, in addition to fixing the bug!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worked locally for me and the code is also an improvement
I am missing something. Could you help me understand the underlying bug and why these changes fix it? |
I understood what the bug is, but not why this is fixing it. I was able to dig up the related conversation in discord though. It seems that the previous method of tearing down the scene was likely despawning an important |
# Objective Fixes #15729 ## Solution Use the state-scoped pattern. ## Testing Tested manually. See the showcase. --- ## Showcase https://github.com/user-attachments/assets/14ffefca-40c6-4c7e-b15b-f92466a2b0a5
# Objective Fixes bevyengine#15729 ## Solution Use the state-scoped pattern. ## Testing Tested manually. See the showcase. --- ## Showcase https://github.com/user-attachments/assets/14ffefca-40c6-4c7e-b15b-f92466a2b0a5
Objective
Fixes #15729
Solution
Use the state-scoped pattern.
Testing
Tested manually. See the showcase.
Showcase
Screen.Recording.2024-11-07.201740.mp4