-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Open
Labels
A-DiagnosticsLogging, crash handling, error reporting and performance analysisLogging, crash handling, error reporting and performance analysisA-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to use
Description
What problem does this solve or what need does it fill?
When handling QueryEntityError::QueryDoesNotMatch from Querys over multiple component types, it'd be useful for debugging to be able to check which components were missing.
What solution would you like?
The first that comes to mind is to just put a Vec of component names in the error type, but it doesn't have to be that -- I just want to be able to find out without having to manually check each component. Maybe a Query::get_missing function?
What alternative(s) have you considered?
- Instead of
Query<(X, Y)>, useQuery<(Option<X>, Option<Y>)>-- this isn't very ergonomic, though, especially when the component isn't actually intended to be optional.
Related PRs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-DiagnosticsLogging, crash handling, error reporting and performance analysisLogging, crash handling, error reporting and performance analysisA-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to use