diff --git a/crates/bevy_text/src/bounds.rs b/crates/bevy_text/src/bounds.rs index 57b8d95f1a5d0..2dc5a27a49c53 100644 --- a/crates/bevy_text/src/bounds.rs +++ b/crates/bevy_text/src/bounds.rs @@ -1,5 +1,6 @@ use bevy_ecs::{component::Component, reflect::ReflectComponent}; use bevy_math::Vec2; +use bevy_reflect::std_traits::ReflectDefault; use bevy_reflect::Reflect; /// The maximum width and height of text. The text will wrap according to the specified size. @@ -10,7 +11,7 @@ use bevy_reflect::Reflect; /// reliable limit if it is necessary to contain the text strictly in the bounds. Currently this /// component is mainly useful for text wrapping only. #[derive(Component, Copy, Clone, Debug, Reflect)] -#[reflect(Component)] +#[reflect(Component, Default, Debug)] pub struct TextBounds { /// The maximum width of text in logical pixels. /// If `None`, the width is unbounded. diff --git a/crates/bevy_text/src/pipeline.rs b/crates/bevy_text/src/pipeline.rs index f5fbc64b3a4d8..103b37d4ea16e 100644 --- a/crates/bevy_text/src/pipeline.rs +++ b/crates/bevy_text/src/pipeline.rs @@ -312,7 +312,7 @@ impl TextPipeline { /// /// Contains scaled glyphs and their size. Generated via [`TextPipeline::queue_text`]. #[derive(Component, Clone, Default, Debug, Reflect)] -#[reflect(Component, Default)] +#[reflect(Component, Default, Debug)] pub struct TextLayoutInfo { /// Scaled and positioned glyphs in screenspace pub glyphs: Vec, diff --git a/crates/bevy_text/src/text.rs b/crates/bevy_text/src/text.rs index 9172b6896e96b..0982592c84b36 100644 --- a/crates/bevy_text/src/text.rs +++ b/crates/bevy_text/src/text.rs @@ -27,7 +27,7 @@ impl Default for CosmicBuffer { /// /// It contains all of the text value and styling information. #[derive(Component, Debug, Clone, Default, Reflect)] -#[reflect(Component, Default)] +#[reflect(Component, Default, Debug)] pub struct Text { /// The text's sections pub sections: Vec,