@galacean/engine-toolkit-stats 包主要用来显示相机的渲染状态,只需要为相机节点添加 Stats 组件:
Stats
import { Engine } from "@galacean/engine"; import { Stats } from "@galacean/engine-toolkit-stats"; cameraEntity.addComponent(Camera); cameraEntity.addComponent(Stats);
这篇文档对您有帮助吗?