Function bevy::ui::widget::text_system
pub fn text_system(
textures: ResMut<'_, Assets<Image>>,
last_scale_factor: Local<'_, f64>,
fonts: Res<'_, Assets<Font>>,
windows: Query<'_, '_, &Window, With<PrimaryWindow>>,
text_settings: Res<'_, TextSettings>,
font_atlas_warning: ResMut<'_, FontAtlasWarning>,
ui_scale: Res<'_, UiScale>,
texture_atlases: ResMut<'_, Assets<TextureAtlas>>,
font_atlas_set_storage: ResMut<'_, Assets<FontAtlasSet>>,
text_pipeline: ResMut<'_, TextPipeline>,
text_query: Query<'_, '_, (Ref<'_, Node>, &Text, &mut TextLayoutInfo, &mut TextFlags), ()>
)
Expand description
Updates the layout and size information whenever the text or style is changed.
This information is computed by the TextPipeline
on insertion, then stored.
World Resources
ResMut<Assets<Image>>
– This system only adds new Image
assets.
It does not modify or observe existing ones.