| Crates.io | bevy_webcam |
| lib.rs | bevy_webcam |
| version | 0.2.0 |
| created_at | 2025-07-08 02:31:47.801304+00 |
| updated_at | 2025-07-08 03:45:01.219155+00 |
| description | bevy webcam plugin |
| homepage | https://github.com/mosure/bevy_webcam |
| repository | https://github.com/mosure/bevy_webcam |
| max_upload_size | |
| id | 1741977 |
| size | 151,442 |
bevy camera input, using the nokhwa crate
app.add_plugins((
DefaultPlugins,
BevyWebcamPlugin::default(),
));
app.add_systems(
Update,
setup_ui,
);
// ...
fn setup_ui(
mut commands: Commands,
stream: Res<WebcamStream>,
) {
commands.spawn(Camera2d);
commands.spawn((
ImageNode {
image: stream.frame.clone(),
..default()
},
Node {
width: Val::Percent(100.0),
height: Val::Percent(100.0),
..default()
},
));
}