Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/crates/bevy_feathers/src/containers/flex_spacer.rs
30636 views
1
use bevy_scene::{bsn, Scene};
2
use bevy_ui::Node;
3
4
/// An invisible UI node that takes up space, and which has a positive `flex_grow` setting.
5
/// This is normally used within containers to provide a gap.
6
pub fn flex_spacer() -> impl Scene {
7
bsn! {
8
Node {
9
flex_grow: 1.0,
10
}
11
}
12
}
13
14