Crate bevy_screen_diagnostics
source ·Expand description
A small bevy plugin to easily display diagnostics to the screen
FPS and Frametime display:
use bevy_screen_diagnostics::{ScreenDiagnostics, ScreenFrameDiagnostics};
fn main() {
App::new()
.add_plugin(DefaultPlugins)
.add_plugin(ScreenDiagnostics)
.add_plugin(ScreenFrameDiagnostics);
}bevy_screen_diagnostics provides the following bevy plugins:
- ScreenDiagnostics which offers the basic functionality of displaying diagnostics.
- [ScreenFrameDiagnostics] which adds the [FrameTimeDiagnosticsPlugin] and adds its diagnostics to [DiagnosticsText]
- [ScreenEntityDiagnostics] which adds the [EntityCountDiagnosticsPlugin] and adds its diagnostics to [DiagnosticsText]
Structs
Builder-like interface for a [DiagnosticsText].
Resource which maps the name to the [DiagnosticId], Aggregate and [ConvertFn]
Plugin for displaying Diagnostics on screen.
Plugin which adds the [EntityCountDiagnosticsPlugin] and adds its diagnostics to [DiagnosticsText]
Plugin which adds the [FrameTimeDiagnosticsPlugin] and adds its diagnostics to [DiagnosticsText]
Enums
Aggregaes which can be used for displaying Diagnostics.
Type Definitions
Type alias for the fuction used to format a diagnostic value to a string.