![]() # Objective Fixes #15223 ## Solution Adds an `enabled` flag to the `FpsOverlayConfig` resource with a system that detects it's change, and adjusts the visibility of the overlay text entity. ## Testing I extended the `fps_overlay` example with the option to toggle the overlay. Run with: ``` cargo run --features="bevy_dev_tools" --example fps_overlay ``` |
||
---|---|---|
.. | ||
ci_testing | ||
ui_debug_overlay | ||
fps_overlay.rs | ||
lib.rs | ||
states.rs |