diff --git a/crates/bevy_camera/src/camera.rs b/crates/bevy_camera/src/camera.rs index 8b2248942e3ef..e8827d7edcee7 100644 --- a/crates/bevy_camera/src/camera.rs +++ b/crates/bevy_camera/src/camera.rs @@ -158,7 +158,7 @@ impl Default for SubCameraView { } /// Information about the current [`RenderTarget`]. -#[derive(Debug, Clone)] +#[derive(Debug, Reflect, Clone)] pub struct RenderTargetInfo { /// The physical size of this render target (in physical pixels, ignoring scale factor). pub physical_size: UVec2, @@ -179,7 +179,7 @@ impl Default for RenderTargetInfo { } /// Holds internally computed [`Camera`] values. -#[derive(Default, Debug, Clone)] +#[derive(Default, Debug, Reflect, Clone)] pub struct ComputedCameraValues { pub clip_from_view: Mat4, pub target_info: Option, @@ -355,7 +355,6 @@ pub struct Camera { /// camera will not be rendered. pub is_active: bool, /// Computed values for this camera, such as the projection matrix and the render target size. - #[reflect(ignore, clone)] pub computed: ComputedCameraValues, // todo: reflect this when #6042 lands /// The [`CameraOutputMode`] for this camera.