diff --git a/crates/bevy_ui/src/lib.rs b/crates/bevy_ui/src/lib.rs index 1752180b77d86..fdd4dd432bf06 100644 --- a/crates/bevy_ui/src/lib.rs +++ b/crates/bevy_ui/src/lib.rs @@ -20,6 +20,7 @@ pub mod update; pub mod widget; use bevy_derive::{Deref, DerefMut}; +use bevy_reflect::Reflect; #[cfg(feature = "bevy_text")] use bevy_render::camera::CameraUpdateSystem; use bevy_render::{extract_component::ExtractComponentPlugin, RenderApp}; @@ -68,7 +69,7 @@ pub enum UiSystem { /// /// A multiplier to fixed-sized ui values. /// **Note:** This will only affect fixed ui values like [`Val::Px`] -#[derive(Debug, Resource, Deref, DerefMut)] +#[derive(Debug, Reflect, Resource, Deref, DerefMut)] pub struct UiScale(pub f64); impl Default for UiScale { @@ -110,9 +111,12 @@ impl Plugin for UiPlugin { .register_type::() .register_type::() .register_type::