Files
engine/docs/en/performance/stats.md
2024-08-05 16:03:57 +08:00

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);

Example