Function root

Source
pub fn root(
    class: impl Class<NodeBundle>,
    assets: &AssetServer,
    commands: &mut Commands<'_, '_>,
    children: impl FnOnce(&mut UiChildBuilder<'_, '_>),
) -> Entity
Expand description

Spawns a NodeBundle as the root with children.