bevy_webcam

Crates.iobevy_webcam
lib.rsbevy_webcam
version0.2.0
created_at2025-07-08 02:31:47.801304+00
updated_at2025-07-08 03:45:01.219155+00
descriptionbevy webcam plugin
homepagehttps://github.com/mosure/bevy_webcam
repositoryhttps://github.com/mosure/bevy_webcam
max_upload_size
id1741977
size151,442
Mitchell Mosure (mosure)

documentation

README

bevy_webcam 📷

GitHub License crates.io

bevy camera input, using the nokhwa crate

usage

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()
        },
    ));
}

features

  • native camera
  • threaded camera
  • wasm camera
Commit count: 0

cargo fmt