mirror of
https://github.com/bevyengine/bevy
synced 2024-12-25 20:43:07 +00:00
0cbabefbad
# Objective We don't have a constructor function for `UiRect` that sets uniform horizontal and vertical values, even though it is a common pattern. ## Solution Add a constructor function to `UiRect` called `axes`, that sets both `left` and `right` to the same given horizontal value, and sets both `top` and `bottom` to same given vertical value. ## Changelog * Added a constructor function `axes` to `UiRect`. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |