Panic with UI hierarchy when no camera is present #12184
Labels
A-Rendering
Drawing game state to the screen
A-UI
Graphical user interfaces, styles, layouts, and widgets
C-Bug
An unexpected or incorrect behavior
D-Trivial
Nice and easy! A great choice to get started with Bevy
P-Crash
A sudden unexpected crash
Bevy version
main, 0.13
bisected to #10559
Relevant system information
What you did
I noticed this while writing some doc examples which were accidentally not
no_run
.This is the most minimal repro I can make, but I also see this panic in e.g. the
button
example modified with no camera.What went wrong
Received a warning about a camera not being present, which I suppose makes sense.
Received a warning about an "unstyled child in a UI entity hierarchy" which does not make sense as far as I can tell.
Finally, panicked on an
unwrap
which doesn't seem desirable.The text was updated successfully, but these errors were encountered: