diff --git a/examples/ui/text.rs b/examples/ui/text.rs index 18ab488789718..354a04a23d65a 100644 --- a/examples/ui/text.rs +++ b/examples/ui/text.rs @@ -17,13 +17,13 @@ fn main() { .run(); } -// A unit struct to help identify the FPS UI component, since there may be many Text components +// Marker struct to help identify the FPS UI component, since there may be many Text components #[derive(Component)] struct FpsText; -// A unit struct to help identify the color-changing Text component +// Marker struct to help identify the color-changing Text component #[derive(Component)] -struct ColorText; +struct AnimatedText; fn setup(mut commands: Commands, asset_server: Res) { // UI camera @@ -47,7 +47,7 @@ fn setup(mut commands: Commands, asset_server: Res) { right: Val::Px(5.0), ..default() }, - ColorText, + AnimatedText, )); // Text with multiple sections @@ -116,7 +116,7 @@ fn setup(mut commands: Commands, asset_server: Res) { )); } -fn text_color_system(time: Res