Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions crates/bevy_dev_tools/src/fps_overlay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ use bevy_ecs::{
component::Component,
entity::Entity,
query::{With, Without},
reflect::ReflectResource,
resource::Resource,
schedule::{common_conditions::resource_changed, IntoScheduleConfigs},
system::{Commands, Query, Res, ResMut, Single},
};
use bevy_picking::Pickable;
use bevy_reflect::Reflect;
use bevy_render::storage::ShaderStorageBuffer;
use bevy_text::{TextColor, TextFont, TextSpan};
use bevy_time::common_conditions::on_timer;
Expand Down Expand Up @@ -87,7 +89,8 @@ impl Plugin for FpsOverlayPlugin {
}

/// Configuration options for the FPS overlay.
#[derive(Resource, Clone)]
#[derive(Resource, Clone, Reflect)]
#[reflect(Resource)]
pub struct FpsOverlayConfig {
/// Configuration of text in the overlay.
pub text_config: TextFont,
Expand Down Expand Up @@ -117,7 +120,7 @@ impl Default for FpsOverlayConfig {
}

/// Configuration of the frame time graph
#[derive(Clone, Copy)]
#[derive(Clone, Copy, Reflect)]
pub struct FrameTimeGraphConfig {
/// Is the graph visible
pub enabled: bool,
Expand Down