pub fn update_scale_factor(mut egui_settings: ResMut<'_, EguiSettings>, windows: Res<'_, Windows>) {
    if let Some(window) = windows.get_primary() {
        egui_settings.scale_factor = 1.0 / window.scale_factor();
    }
}
/// Resizes the UI when the screen is resized.
Resizes the UI when the screen is resized.
Resizes the UI when the screen is resized .
pub fn update_scale_factor(mut egui_settings: ResMut<'_, EguiSettings>, windows: Res<'_, Windows>) {
    if let Some(window) = windows.get_primary() {
        egui_settings.scale_factor = 1.0 / window.scale_factor();
    }
}
pub fn update_scale_factor ( mut egui_settings : ResMut < ' _ , EguiSettings > , windows : Res < ' _ , Windows > ) { if let Some ( window ) = windows . get_primary ( ) { egui_settings . scale_factor = 1.0 / window . scale_factor ( ) ; } }
Resizes the UI when the screen is resized.
Resizes the UI when the screen is resized .
egui_settings
ResMut<'_, EguiSettings>
windows
Res<'_, Windows>
egui_settings
ResMut<'_, EguiSettings>
windows
Res<'_, Windows>