Skip to content

ablity for PrintDiagnosticsPlugin to be toggled via a Resource #1684

@mattdm

Description

@mattdm

What problem does this solve or what need does it fill?

It's handy to be able to have this simple diagnostic functionality at hand, but it also clutters up the console.

It would be nice to be able to easily turn it on and off (connected with a command-line flag to the program, an environment variable, or some system which changes the state.)

What solution would you like?

A PrintDiagnosticsFlag resource which could be toggled on or off; the system would exit if off.

What alternative(s) have you considered?

One can put the diagnostics in a stage with a run criteria. This adds a lot of boilerplate, though.

Additional context

Not urgent, just would be handy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-ExamplesAn addition or correction to our examplesC-UsabilityA targeted quality-of-life change that makes Bevy easier to use

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions