bevy_wasm_window_resize

Crates.iobevy_wasm_window_resize
lib.rsbevy_wasm_window_resize
version0.4.0
sourcesrc
created_at2023-03-31 14:36:44.430267
updated_at2024-07-21 15:59:38.055076
descriptionBevy helper crate that makes application canvas match window size.
homepagehttps://github.com/Leinnan/bevy_wasm_window_resize
repositoryhttps://github.com/Leinnan/bevy_wasm_window_resize
max_upload_size
id826481
size4,382
MevLyshkin (Leinnan)

documentation

README

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
Commit count: 14

cargo fmt