Conflict between Text and UiImage components when a ui node has both
Open
A-UI
C-Bug
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 161
Description
## 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.
Contributor guide
Assessment
This issue has not been assessed yet.