mirror of
https://github.com/galacean/engine.git
synced 2026-05-06 22:23:05 +08:00
17 lines
495 B
Plaintext
17 lines
495 B
Plaintext
---
|
|
order: 2
|
|
title: Statistics Panel
|
|
type: Performance
|
|
label: Performance
|
|
---
|
|
|
|
[@galacean/engine-toolkit-stats](https://www.npmjs.com/package/@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:
|
|
|
|
```typescript
|
|
import { Engine } from "@galacean/engine";
|
|
import { Stats } from "@galacean/engine-toolkit-stats";
|
|
|
|
cameraEntity.addComponent(Camera);
|
|
cameraEntity.addComponent(Stats);
|
|
```
|