bevy_webview 0.2.2

Rapidly iterate and build Bevy UI's with existing web-based technologies
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use bevy::{app::AppExit, prelude::*};

use crate::types::{EventTransport, WebviewAction};

pub(crate) fn app_exit(
    webview_messaging: ResMut<EventTransport>,
    mut app_exit_events: EventReader<AppExit>,
) {
    if let Some(_) = app_exit_events.iter().last() {
        webview_messaging
            .webview_action_tx
            .send(WebviewAction::AppExit)
            .unwrap();
    }
}