bevy-inspector-egui icon indicating copy to clipboard operation
bevy-inspector-egui copied to clipboard

Running code when a resource is modified

Open ThePuzzledDev opened this issue 1 year ago • 1 comments
trafficstars

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?

ThePuzzledDev avatar Jan 15 '24 00:01 ThePuzzledDev

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

jakobhellermann avatar Jan 16 '24 14:01 jakobhellermann