Skip to content

Commit df7736c

Browse files
committed
Alias world_to_viewport for easier migration (#5298)
# Objective When someone searches in rustdoc for `world_to_screen`, they now will find `world_to_viewport`. The method was renamed in 0.8, it would be nice to allow users to find the new name more easily. ---
1 parent f9c1a8a commit df7736c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/bevy_render/src/camera/camera.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ impl Camera {
189189
///
190190
/// To get the coordinates in Normalized Device Coordinates, you should use
191191
/// [`world_to_ndc`](Self::world_to_ndc).
192+
#[doc(alias = "world_to_screen")]
192193
pub fn world_to_viewport(
193194
&self,
194195
camera_transform: &GlobalTransform,

0 commit comments

Comments
 (0)