jakobhellermann / bevy-inspector-egui

Inspector plugin for the bevy game engine
Apache License 2.0
1.1k stars 164 forks source link

return changed bool from ui_for_asset #149

Closed B-Reif closed 9 months ago

B-Reif commented 10 months ago

Currently the ui_for_asset function causes the displayed asset to be mutably dereferenced every frame, which triggers change detection, whether any values changed or not.

To actually detect changes to the displayed asset, this PR just returns the changed bool from the underlying ui_for_reflect call. It might be worth exploring a proper change-detection integration in the future, but for now I just want to get access to the value.

jakobhellermann commented 9 months ago

Thanks!