#Beginner issue: input system not triggering in my Bevy 0.16.1 project (Frame-Pad)

4 messages · Page 1 of 1 (latest)

sage laurel
#

Single silently makes the system not run if there are more than 1 matching entity. In this case, it seems like you have two cameras? Not sure why

wet ridge
#
fn setup_system(
    mut commands: Commands,
    mut egui_global_settings: ResMut<EguiGlobalSettings>,
) {
    egui_global_settings.auto_create_primary_context = false;
    commands.spawn(Camera2d);

    commands.spawn((
        // The `PrimaryEguiContext` component requires everything needed to render a primary context.
        PrimaryEguiContext,
        Camera2d,
        // Setting RenderLayers to none makes sure we won't render anything apart from the UI.
        RenderLayers::none(),
        Camera {
            order: 1,
            ..default()
        },
    ));
}
#

the println! in the place_node function works when i remove the first camera one but the grid doesn't appear nor the ui

#

I did follow an side_panel.rs example for the bevy_egui repo and they also did two cameras one for the world and one for egui