Performance

Statistics Panel

@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

Was this page helpful?

On this page