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

Hot-reloading Bevy systems that use Bevy Resources do not work #39

Open
kaphula opened this issue Oct 3, 2024 · 0 comments
Open

Hot-reloading Bevy systems that use Bevy Resources do not work #39

kaphula opened this issue Oct 3, 2024 · 0 comments

Comments

@kaphula
Copy link

kaphula commented Oct 3, 2024

While hot-reloading simple systems work, when you add Bevy resources the hot-reloading breaks. Here is a repo/branch to demonstrate this issue, see the main.rs file.

It was suggested to me that since Bevy is a dependency on the crate that will be hot-reloaded, there is another dependency of Bevy, crossbeam, which will force recompilation of all crates of the project due to its buildscripts even though you would only want to recompile the hot-reload crate that contains the mangled systems. This is apparantly messes up the TypeIds and the program crashes or ends up with undefined behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant