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

Running code when a resource is modified #178

Open
ThePuzzledDev opened this issue Jan 15, 2024 · 1 comment
Open

Running code when a resource is modified #178

ThePuzzledDev opened this issue Jan 15, 2024 · 1 comment

Comments

@ThePuzzledDev
Copy link

Is there a build in way to check if a resource was modified or do I have to manually have prev_value and check against that?

@jakobhellermann
Copy link
Owner

bevy-inspector-egui should work with regular bevy change detection, so checking Res<Resource>.is_changed() should work cheatbook.

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

2 participants