mirror of
https://github.com/bevyengine/bevy
synced 2024-12-02 17:39:13 +00:00
aefe1f0739
Co-authored-by: Mike <mike.hsu@gmail.com>
16 lines
381 B
Rust
16 lines
381 B
Rust
//! An example that shows how to handle drag and drop of files in an app.
|
|
|
|
use bevy::prelude::*;
|
|
|
|
fn main() {
|
|
App::new()
|
|
.add_plugins(DefaultPlugins)
|
|
.add_systems(Update, file_drag_and_drop_system)
|
|
.run();
|
|
}
|
|
|
|
fn file_drag_and_drop_system(mut events: EventReader<FileDragAndDrop>) {
|
|
for event in events.iter() {
|
|
info!("{:?}", event);
|
|
}
|
|
}
|