| Crates.io | bevy_web_fullscreen |
| lib.rs | bevy_web_fullscreen |
| version | 0.2.1 |
| created_at | 2022-12-14 23:43:23.367744+00 |
| updated_at | 2022-12-14 23:43:23.367744+00 |
| description | Bevy plugin for automatic resizing of primary bevy window to fit browser viewport |
| homepage | |
| repository | |
| max_upload_size | |
| id | 737205 |
| size | 5,687 |
plugin for automatic resizing of primary bevy window to fit browser viewport
tested with mrks-its/bevy_webgl2 in ostwilkens/arugio
.add_plugin(FullViewportPlugin)
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"/>
body {
margin: 0px;
display: flex;
overflow: hidden;
}
canvas {
touch-action: none;
}
Make use of this cfg in order to have your code only include the plugin when targeting wasm.
#[cfg(target_family = "wasm")]
app.add_plugin(FullViewportPlugin);