update_text2d_layout

Function update_text2d_layout 

Source
pub fn update_text2d_layout(
    target_scale_factors: Local<'_, Vec<(f32, RenderLayers)>>,
    queue: Local<'_, EntityHashSet>,
    textures: ResMut<'_, Assets<Image>>,
    fonts: Res<'_, Assets<Font>>,
    camera_query: Query<'_, '_, (&Camera, &VisibleEntities, Option<&RenderLayers>)>,
    texture_atlases: ResMut<'_, Assets<TextureAtlasLayout>>,
    font_atlas_sets: ResMut<'_, FontAtlasSets>,
    text_pipeline: ResMut<'_, TextPipeline>,
    text_query: Query<'_, '_, (Entity, Option<&RenderLayers>, Ref<'_, TextLayout>, Ref<'_, TextBounds>, &mut TextLayoutInfo, &mut ComputedTextBlock)>,
    text_reader: TextReader<'_, '_, Text2d>,
    font_system: ResMut<'_, CosmicFontSystem>,
    swash_cache: ResMut<'_, SwashCache>,
)
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.