Function bevy_scene::scene_spawner
source · pub fn scene_spawner(
commands: Commands<'_, '_>,
scene_to_spawn: Query<'_, '_, (Entity, &Handle<Scene>, Option<&mut SceneInstance>), (Changed<Handle<Scene>>, Without<Handle<DynamicScene>>)>,
dynamic_scene_to_spawn: Query<'_, '_, (Entity, &Handle<DynamicScene>, Option<&mut SceneInstance>), (Changed<Handle<DynamicScene>>, Without<Handle<Scene>>)>,
scene_spawner: ResMut<'_, SceneSpawner>
)
Expand description
System that will spawn scenes from SceneBundle
.