TextUiReader requires a parent Text to function, despite TextSpan docs #16794
Labels
A-Text
Rendering and layout for characters
A-UI
Graphical user interfaces, styles, layouts, and widgets
C-Bug
An unexpected or incorrect behavior
S-Needs-Design
This issue requires design work to think about how it would best be accomplished
Bevy version
Bevy 0.15.0
What you did
I constructed a root
TextLayout
with childTextSpans
, as per theTextSpan
documentation.What went wrong
TextUiReader
should allow me to properly iterate over the childTextSpan
s of the entity withTextLayout
, but it will return an empty iterator if there is no root parentText
component.I'm not sure what the expected behavior is here; if I don't want to use a root
Text
component, shouldTextUiReader
still work? Or is the example forTextSpan
incorrect?The text was updated successfully, but these errors were encountered: