diff --git a/crates/bevy_ui/src/geometry.rs b/crates/bevy_ui/src/geometry.rs index a5749e467a..79ead6ab78 100644 --- a/crates/bevy_ui/src/geometry.rs +++ b/crates/bevy_ui/src/geometry.rs @@ -349,6 +349,13 @@ impl UiRect { bottom: Val::ZERO, }; + pub const AUTO: Self = Self { + left: Val::Auto, + right: Val::Auto, + top: Val::Auto, + bottom: Val::Auto, + }; + /// Creates a new [`UiRect`] from the values specified. /// /// # Example