11 releases
0.1.10 | Aug 14, 2024 |
---|---|
0.1.9 | Jul 23, 2024 |
0.1.6 | Feb 23, 2024 |
0.1.0 | Jan 25, 2024 |
0.0.1 |
|
#1456 in Game dev
45KB
561 lines
About
'bevy_wry' is a bevy plugin that provides integration with wry - a cross platform webview rendering library written in rust.
BevyWry allows for bevy::Event based communication with WebView:
- Out events are required to implement [OutWryEvent]. This allows for wry::WebView::evaluate_script communication with WebView
- Incoming events are received via IPC channel registered with wry::WebViewBuilder::with_ipc_handler This plugin is in EARLY and EXPERIMENTAL stage.
Please keep in mind that you will have to add this patch to use bevy_wry
:
[patch.crates-io]
# At the moment http disallows empty authority and invalidates uris like: "file:///path/to/file"
http = { git = "https://github.com/PawelBis/http", branch = "feature/empty-authority" }
Examples
- fullscreen - how to create and use fullscreen webview with transparency. Linux and Windows doesn't support transparency at the moment
- anchors
Run an example with:
cargo run --example=example_name
Dependencies
~25–71MB
~1M SLoC