Print a warning if a CommandQueue
gets dropped with un-applied commands
#11125
Labels
A-ECS
Entities, components, systems, and events
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
D-Trivial
Nice and easy! A great choice to get started with Bevy
What problem does this solve or what need does it fill?
When dealing with exclusive world access,
SystemState
is useful for interfacing with the world with an interface similar to regular systems. However, it's very easy to forget to call.apply()
, which can result in commands being lost.What solution would you like?
There should be a warning if a
SystemState
gets dropped without being applied. To accomplish this, we should be able to put a warning in theDrop
impl forCommandQueue
What alternative(s) have you considered?
None.
The text was updated successfully, but these errors were encountered: