mirror of
https://github.com/bevyengine/bevy
synced 2024-12-15 07:42:29 +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 |