From d1099ac7db64b66b83b67a1df3d62bb3c4a5bc85 Mon Sep 17 00:00:00 2001 From: Kim Simmons Date: Sun, 5 May 2024 17:14:00 +0200 Subject: [PATCH] Doc custom CameraProjection requires use of plugin (#13140) # Objective Documentation should mention the two plugins required for your custom `CameraProjection` to work. ## Solution Documented! --- I tried linking to `bevy_pbr::PbrProjectionPlugin` from `bevy_render::camera::CameraProjection` but it wasn't in scope. Is there a trick to it? --- crates/bevy_render/src/camera/projection.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/bevy_render/src/camera/projection.rs b/crates/bevy_render/src/camera/projection.rs index 2ea1dc5535..c8495ffbf3 100644 --- a/crates/bevy_render/src/camera/projection.rs +++ b/crates/bevy_render/src/camera/projection.rs @@ -70,6 +70,9 @@ pub struct CameraUpdateSystem; /// to recompute the camera projection matrix of the [`Camera`] component attached to /// the same entity as the component implementing this trait. /// +/// Use the plugins [`CameraProjectionPlugin`] and `bevy::pbr::PbrProjectionPlugin` to setup the +/// systems for your [`CameraProjection`] implementation. +/// /// [`Camera`]: crate::camera::Camera pub trait CameraProjection { fn get_projection_matrix(&self) -> Mat4;