Remove dependency on bevy_window
from bevy_text
#8820
Labels
A-UI
Graphical user interfaces, styles, layouts, and widgets
C-Performance
A change motivated by improving speed, memory usage or compile times
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
X-Controversial
There is active debate or serious implications around merging this PR
What problem does this solve or what need does it fill?
This dependency is very tenuous: it only exists due to the reliance of
Text2D
on the window's scale factor.It creates two small problems however:
Options
Text2D
completely, by eliminating special-casing of world-space UI (World-space UI #5476).Text2D
behind an on-by-default feature flag.bevy_text
without a dependency.Ultimately my preference is for 1: if we can manage that it will be a huge simplification.
3 seems strictly better than 2. 4 would be interesting, but I genuinely don't see how to do it unless we create a resource upstream of both crates that they can each read/write to.
Additional context
This is a write-up of a request by AbleHeathen on Discord.
The text was updated successfully, but these errors were encountered: