Function bevy::ui::widget::update_image_content_size_system
pub fn update_image_content_size_system(
previous_combined_scale_factor: Local<'_, f64>,
windows: Query<'_, '_, &Window, With<PrimaryWindow>>,
ui_scale: Res<'_, UiScale>,
textures: Res<'_, Assets<Image>>,
query: Query<'_, '_, (&mut ContentSize, &UiImage, &mut UiImageSize), (With<Node>, Without<Text>)>
)
Expand description
Updates content size of the node based on the image provided