pub fn update_image_content_size_system(
textures: Res<'_, Assets<Image>>,
atlases: Res<'_, Assets<TextureAtlasLayout>>,
query: Query<'_, '_, (&mut ContentSize, Ref<'_, ImageNode>, &mut ImageNodeSize, Ref<'_, ComputedUiRenderTargetInfo>), (With<Node>, Without<Text>)>,
)
Expand description
Updates content size of the node based on the image provided