jakobhellermann / bevy-inspector-egui

Inspector plugin for the bevy game engine
Apache License 2.0
1.19k stars 173 forks source link

Add highlight_changes parameter to world inspector #38

Closed jamesbeilby closed 2 years ago

jamesbeilby commented 2 years ago

Added highlight_changes parameter to world inspector (defaults to false). When set to true, it highlights components when they change in the world, detected using component ticks in the ECS. Expanded "world" example to demonstrate.

https://user-images.githubusercontent.com/27224353/143033960-a128b525-f75f-467a-bd99-dbe6139a46e2.mp4

jamesbeilby commented 2 years ago

Thanks for the feedback! Am just working my way through Rustonomicon on unsafe now! Updated with changes; also propagating unsafe up to component_ui, component_kind_ui where we depend on the entity lookup, and some extra comments.