diff --git a/crates/bevy_render/src/camera/camera.rs b/crates/bevy_render/src/camera/camera.rs index de68e0d925..50c1b05c11 100644 --- a/crates/bevy_render/src/camera/camera.rs +++ b/crates/bevy_render/src/camera/camera.rs @@ -498,7 +498,8 @@ impl Default for CameraOutputMode { } /// Configures the [`RenderGraph`](crate::render_graph::RenderGraph) name assigned to be run for a given [`Camera`] entity. -#[derive(Component, Deref, DerefMut)] +#[derive(Component, Deref, DerefMut, Reflect, Clone)] +#[reflect_value(Component)] pub struct CameraRenderGraph(InternedRenderSubGraph); impl CameraRenderGraph { @@ -773,7 +774,8 @@ pub fn camera_system( } /// This component lets you control the [`TextureUsages`] field of the main texture generated for the camera -#[derive(Component, ExtractComponent, Clone, Copy)] +#[derive(Component, ExtractComponent, Clone, Copy, Reflect)] +#[reflect_value(Component)] pub struct CameraMainTextureUsages(pub TextureUsages); impl Default for CameraMainTextureUsages { fn default() -> Self { diff --git a/crates/bevy_render/src/camera/mod.rs b/crates/bevy_render/src/camera/mod.rs index 09961a28a7..52387a047b 100644 --- a/crates/bevy_render/src/camera/mod.rs +++ b/crates/bevy_render/src/camera/mod.rs @@ -30,6 +30,8 @@ impl Plugin for CameraPlugin { .register_type::() .register_type::() .register_type::() + .register_type::() + .register_type::() .init_resource::() .init_resource::() .add_plugins((