mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 12:43:34 +00:00
Require ContentSize
on UiImage
again (#16138)
# Objective The `ContentSize` requirement on `UiImage` got lost during merge conflict fixes, causing some images such as the icons on the `game_menu` example to disappear. Fixes #16136 ## Solution Require `ContentSize` on `UiImage` again. --------- Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
This commit is contained in:
parent
72321ca3c5
commit
e58670102e
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ use taffy::{MaybeMath, MaybeResolve};
|
||||||
/// The 2D texture displayed for this UI node
|
/// The 2D texture displayed for this UI node
|
||||||
#[derive(Component, Clone, Debug, Reflect)]
|
#[derive(Component, Clone, Debug, Reflect)]
|
||||||
#[reflect(Component, Default, Debug)]
|
#[reflect(Component, Default, Debug)]
|
||||||
#[require(Node, UiImageSize)]
|
#[require(Node, UiImageSize, ContentSize)]
|
||||||
pub struct UiImage {
|
pub struct UiImage {
|
||||||
/// The tint color used to draw the image.
|
/// The tint color used to draw the image.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in a new issue