Skip to content

Commit

Permalink
Fix ui_scaling example failing to compile
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett committed Jun 19, 2024
1 parent 4c3dbcc commit 43afc67
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/ui/ui_scaling.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
//! This example illustrates the [`UiScale`] resource from `bevy_ui`.
use bevy::{color::palettes::css::*, prelude::*, text::TextSettings, utils::Duration};
use bevy::{color::palettes::css::*, prelude::*, utils::Duration};

const SCALE_TIME: u64 = 400;

fn main() {
App::new()
.add_plugins(DefaultPlugins)
.insert_resource(TextSettings {
allow_dynamic_font_size: true,
..default()
})
.insert_resource(TargetScale {
start_scale: 1.0,
target_scale: 1.0,
Expand Down

0 comments on commit 43afc67

Please sign in to comment.