bevy_feathers 0.19.0

A collection of UI widgets for building editors and utilities in Bevy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use bevy_scene::{bsn, Scene};
use bevy_ui::Node;

/// An invisible UI node that takes up space, and which has a positive `flex_grow` setting.
/// This is normally used within containers to provide a gap.
pub fn flex_spacer() -> impl Scene {
    bsn! {
        Node {
            flex_grow: 1.0,
        }
    }
}