diff --git a/crates/bevy_ui/src/ui_node.rs b/crates/bevy_ui/src/ui_node.rs index ce5334b47b00d..66eb0e12d2da3 100644 --- a/crates/bevy_ui/src/ui_node.rs +++ b/crates/bevy_ui/src/ui_node.rs @@ -758,6 +758,20 @@ impl UiImage { ..Default::default() } } + + /// flip the image along its x-axis + #[must_use] + pub const fn with_flip_x(mut self) -> Self { + self.flip_x = true; + self + } + + /// flip the image along its y-axis + #[must_use] + pub const fn with_flip_y(mut self) -> Self { + self.flip_y = true; + self + } } impl From> for UiImage {