Panic when adding non-UI child to UI nodes should provide a better message #10826
Labels
A-Diagnostics
Logging, crash handling, error reporting and performance analysis
A-UI
Graphical user interfaces, styles, layouts, and widgets
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
When adding a non-UI entity as a child to a UI node, Bevy (rev e3a59c4) panics like this:
This is not an issue in itself, it's the correct behavior. However, it took me quite a while to find out that the incorrect entity hierarchy was the issue. If a custom error message were provided, debugging this error would be much easier.
Additional information
The observed crash appears to be the same as presented in #9615.
The text was updated successfully, but these errors were encountered: