#bevy #web #game #bevy-wasm #wasm

bevy_wasm_window_resize

Bevy helper crate that makes application canvas match window size

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

#1996 in Game dev

MIT license

5KB

Bevy WASM window resize

crates.io license crates.io

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

~26–61MB
~1M SLoC