pub trait FlatCommands<'w, 's> {
    fn root<'a>(&'a mut self, entity: Entity) -> RootCommands<'w, 's, 'a>;
    fn spawn_root<B>(&mut self, bundle: B) -> RootCommands<'w, 's, '_>
    where
        B: Bundle
; fn spawn_empty_root(&mut self) -> RootCommands<'w, 's, '_>; }

Required Methods

Set an existing entity as the root entity of the hierarchy

Create a new entity with components from bundle and make it the root of the hierarchy

Spawn an empty entity make it the root of the hierarchy

Implementations on Foreign Types

Implementors