diff --git a/crates/bevy_window/src/monitor.rs b/crates/bevy_window/src/monitor.rs index 64fafa89c127d..756574596b9e6 100644 --- a/crates/bevy_window/src/monitor.rs +++ b/crates/bevy_window/src/monitor.rs @@ -22,7 +22,7 @@ use bevy_reflect::{ReflectDeserialize, ReflectSerialize}; derive(serde::Serialize, serde::Deserialize), reflect(Serialize, Deserialize) )] -#[reflect(Component)] +#[reflect(Component, Debug)] pub struct Monitor { /// The name of the monitor pub name: Option, @@ -42,7 +42,7 @@ pub struct Monitor { /// A marker component for the primary monitor #[derive(Component, Debug, Clone, Reflect)] -#[reflect(Component)] +#[reflect(Component, Debug)] pub struct PrimaryMonitor; impl Monitor { diff --git a/crates/bevy_window/src/window.rs b/crates/bevy_window/src/window.rs index ad001fea947fd..6e80ed7474bb1 100644 --- a/crates/bevy_window/src/window.rs +++ b/crates/bevy_window/src/window.rs @@ -20,7 +20,7 @@ use bevy_utils::tracing::warn; /// with this component if [`primary_window`](crate::WindowPlugin::primary_window) /// is `Some`. #[derive(Default, Debug, Component, PartialEq, Eq, PartialOrd, Ord, Copy, Clone, Reflect)] -#[reflect(Component)] +#[reflect(Component, Debug, Default, PartialEq)] pub struct PrimaryWindow; /// Reference to a [`Window`], whether it be a direct link to a specific entity or @@ -124,7 +124,7 @@ impl NormalizedWindowRef { derive(serde::Serialize, serde::Deserialize), reflect(Serialize, Deserialize) )] -#[reflect(Component, Default)] +#[reflect(Component, Default, Debug)] pub struct Window { /// The cursor options of this window. Cursor icons are set with the `Cursor` component on the /// window entity.