MCPcopy Create free account
hub / github.com/eva-engine/eva.js / start

Method start

packages/plugin-stats/lib/StatsSystem.ts:38–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 }
37 }
38 start() {
39 if (!this.show) return;
40 this.component = this.game.scene.addComponent(new StatsComponent());
41 this.stats = Stats(this.style);
42 this.component.stats = this.stats;
43 this.stats.showPanel(0); // 0: fps, 1: ms, 2: mb, 3+: custom
44 document.body.appendChild(this.stats.dom);
45 }
46 lateUpdate() {
47 if (!this.show) return;
48 this.stats && this.stats.end(this.hook);

Callers

nothing calls this directly

Calls 2

StatsFunction · 0.85
addComponentMethod · 0.80

Tested by

no test coverage detected