bevy_web_file_drop 0.3.0

Bevy plugin adding better support for drag and drop files in the web.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
# bevy_web_file_drop

Bevy plugin adding better support for drag and drop files in the web.
Bevy has built in [drag and drop events](https://docs.rs/bevy/latest/bevy/prelude/enum.FileDragAndDrop.html), but they cause a panic when used in a web build and don't cancel the default browser behavior.
This plugin adds some custom JavaScript glue around the canvas to catch these events and relay them to Bevy.

## Testing

View the example on web with `trunk serve`.
View the example on native with `cargo run -p example`.

Drop in `.png` files to see the texture change.