mirror of
https://github.com/bevyengine/bevy
synced 2024-11-26 22:50:19 +00:00
340957994d
# Objective This PR implements the `overflow` style property in `bevy_ui`. When set to `Overflow::Hidden`, the children of that node are clipped so that overflowing parts are not rendered. This is an important building block for UI widgets. ## Solution Clipping is done on the CPU so that it does not break batching. The clip regions update was implemented as a separate system for clarity, but it could be merged with the other UI systems to avoid doing an additional tree traversal. (I don't think it's important until we fix the layout performance issues though). A scrolling list was added to the `ui_pipelined` example to showcase `Overflow::Hidden`. For the sake of simplicity, it can only be scrolled with a mouse. |
||
---|---|---|
.. | ||
button.rs | ||
font_atlas_debug.rs | ||
text.rs | ||
text_debug.rs | ||
ui.rs |