pub fn update_image_content_size_system(
    previous_combined_scale_factor: Local<'_, f32>,
    windows: Query<'_, '_, &Window, With<PrimaryWindow>>,
    ui_scale: Res<'_, UiScale>,
    textures: Res<'_, Assets<Image>>,
    atlases: Res<'_, Assets<TextureAtlasLayout>>,
    query: Query<'_, '_, (&mut ContentSize, &UiImage, &mut UiImageSize, Option<&TextureAtlas>), (With<Node>, Without<Text>)>
)
Expand description

Updates content size of the node based on the image provided