Function bevy_window::exit_on_primary_closed

source ·
pub fn exit_on_primary_closed(
    app_exit_events: EventWriter<'_, AppExit>,
    windows: Query<'_, '_, (), (With<Window>, With<PrimaryWindow>)>
)
Expand description

Exit the application when the primary window has been closed

This system is added by the WindowPlugin