use bevy::prelude::*; pub mod crosshair; pub mod loading_screen; pub(super) fn plugin(app: &mut App) { app.add_plugins((crosshair::plugin, loading_screen::plugin)); // Make entities require the `Pickable` component if // they should be considered for the picking system. app.insert_resource(UiPickingSettings { require_markers: true, }); app.add_systems(Startup, setup_ui_camera); } fn setup_ui_camera(mut commands: Commands) { commands.spawn(( Camera2d, Camera { order: 1, // above 3D camera ..default() }, IsDefaultUiCamera, UiPickingCamera, )); }