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.
pub fn root(
class: impl Class<NodeBundle>,
assets: &AssetServer,
commands: &mut Commands<'_, '_>,
children: impl FnOnce(&mut UiChildBuilder<'_, '_>),
) -> Entity
Spawns a NodeBundle
as the root with children.