fix: apply max history length
This commit is contained in:
parent
37fefd855e
commit
3015cac1fe
@ -30,8 +30,10 @@ impl EntityCountDiagnosticsPlugin {
|
||||
|
||||
impl Plugin for EntityCountDiagnosticsPlugin {
|
||||
fn build(&self, app: &mut App) {
|
||||
app.register_diagnostic(Diagnostic::new(Self::ENTITY_COUNT))
|
||||
.add_systems(Update, Self::diagnostic_system);
|
||||
app.register_diagnostic(
|
||||
Diagnostic::new(Self::ENTITY_COUNT).with_max_history_length(self.max_history_length),
|
||||
)
|
||||
.add_systems(Update, Self::diagnostic_system);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user