mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 12:13:25 +00:00
Require ContentSize
for UiImage
(#16262)
# Objective Automatic imaging sizing for image nodes isn't working because the the `ContentSize` requirement for `UiImage` got lost in some merge again. Fixes #16239 Fixes #16240 Fixes the missing images seen in #16241 ## Solution Require `ContentSize` for `UiImage`.
This commit is contained in:
parent
eb558bbf77
commit
619c5e3bda
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
|
||||
#[derive(Component, Clone, Debug, Reflect)]
|
||||
#[reflect(Component, Default, Debug)]
|
||||
#[require(Node, UiImageSize)]
|
||||
#[require(Node, UiImageSize, ContentSize)]
|
||||
pub struct UiImage {
|
||||
/// The tint color used to draw the image.
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue