6 releases (3 breaking)
0.4.0 | Jul 21, 2024 |
---|---|
0.3.0 | Feb 17, 2024 |
0.2.1 | Nov 21, 2023 |
0.1.1 | Mar 31, 2023 |
#578 in Game dev
24 downloads per month
5KB
Bevy WASM window resize
This crate makes Bevy application canvas match window size.
Original idea and code behind: ManevilleF
Install
cargo add bevy_wasm_window_resize
Usage
Just add WindowResizePlugin
during app creation process.
use bevy::prelude::*;
use bevy_wasm_window_resize::WindowResizePlugin;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugin(WindowResizePlugin)
.run();
}
Bevy compatibility table
Bevy version | crate version |
---|---|
0.14 | 0.4 |
0.13 | 0.3 |
0.12 | 0.2 |
0.10 | 0.1 |
Dependencies
~24–58MB
~1M SLoC