bevy_scene

Function scene_spawner

Source
pub fn scene_spawner(
    commands: Commands<'_, '_>,
    scene_to_spawn: Query<'_, '_, (Entity, &SceneRoot, Option<&mut SceneInstance>), (Changed<SceneRoot>, Without<DynamicSceneRoot>)>,
    dynamic_scene_to_spawn: Query<'_, '_, (Entity, &DynamicSceneRoot, Option<&mut SceneInstance>), (Changed<DynamicSceneRoot>, Without<SceneRoot>)>,
    scene_spawner: ResMut<'_, SceneSpawner>,
)
Expand description

System that will spawn scenes from the SceneRoot and DynamicSceneRoot components.