mirror of
https://github.com/galacean/engine.git
synced 2026-05-19 11:36:12 +08:00
556 B
556 B
order, title, type, label
| order | title | type | label |
|---|---|---|---|
| 2 | Statistics Panel | Performance | Performance |
@galacean/engine-toolkit-stats package is mainly used to display the rendering status of the camera. You only need to add the Stats component to the camera node:
import { Engine } from "@galacean/engine";
import { Stats } from "@galacean/engine-toolkit-stats";
cameraEntity.addComponent(Camera);
cameraEntity.addComponent(Stats);