You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ickshonpe
changed the title
UiNodes with both Text and Image components
Conflict between Text and UiImage components when a ui node has both
Dec 3, 2022
Bevy version
Bevy 0.9
What went wrong
If you add both the image and text components to a UI node you get a mess:
Until archetype invariants can be enforced (#5121), users can't be prevented from adding both components.
It's natural for a user who wants to add a caption to an image to naively add text components to an ImageBundle and sometimes it will work.
What solution would you like?
I think only drawing the text, and emitting a warning explaining why the image isn't shown is probably the best that can be done for now.
The text was updated successfully, but these errors were encountered: