generated from tipragot/rust
Add a responsive scaling for ui #73
|
@ -21,6 +21,7 @@ pub enum CurrentScene {
|
|||
}
|
||||
|
||||
/// Calculates the ui_scale.0 depending on the size of the main node
|
||||
CoCo_Sol marked this conversation as resolved
Outdated
|
||||
/// in order to make the screen responsive
|
||||
pub fn change_scaling(mut ui_scale: ResMut<UiScale>, window: Query<&Window>) {
|
||||
let window = window.single();
|
||||
let (a, b) = (
|
||||
|
|
Loading…
Reference in a new issue
What is the main node?