Function bevy_text::text2d_system
source · [−]pub fn text2d_system(
queued_text: Local<'_, QueuedText2d>,
textures: ResMut<'_, Assets<Image>>,
fonts: Res<'_, Assets<Font>>,
windows: Res<'_, Windows>,
texture_atlases: ResMut<'_, Assets<TextureAtlas>>,
font_atlas_set_storage: ResMut<'_, Assets<FontAtlasSet>>,
text_pipeline: ResMut<'_, DefaultTextPipeline>,
text_queries: ParamSet<'_, '_, (Query<'_, '_, Entity, (With<Text2dSize>, Changed<Text>)>, Query<'_, '_, (&Text, Option<&Text2dBounds>, &mut Text2dSize), With<Text2dSize>>)>
)
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.