Function bevy::prelude::text_system
pub fn text_system(
commands: Commands<'_, '_>,
queued_text_ids: Local<'_, Vec<Entity, Global>>,
last_scale_factor: Local<'_, f64>,
textures: ResMut<'_, Assets<Image>>,
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_queries: ParamSet<'_, '_, (Query<'_, '_, Entity, Or<(Changed<Text>, Changed<Node>, Changed<Style>)>>, Query<'_, '_, Entity, (With<Text>, With<Style>)>, Query<'_, '_, (&Text, &Style, &mut CalculatedSize, Option<&mut TextLayoutInfo>), ()>)>
)
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.