Closed aecsocket closed 9 months ago
You can already open/close the console programmatically by changing the bool inside the ConsoleOpen
resource. Disabling the default keys is the matter of inserting a ConsoleConfiguration
resource with empty keys
field.
It would be nice to allow the
ConsolePlugin
to accept a run condition on which to run the UI system, rather than a key press being the only possible way to toggle the console show/hide. I propose a solution like bevy_inspector_egui taking afn run_if
, which allows a user to set the run condition.An example use case would be:
And another part of the app would be responsible for changing the current
DebugState
.