微信小游戏如何打开stats显示drawcall和内存占用。

类似预览那个stats

方案一:打调试包(包体会很大,不建议);
方案二:创建个调试面板节点,把 cc.Profiler 的数据连接过去,这样做完全可控。

1赞

自己做个按钮(可以根据账号id 展示)
if(profiler.isShowingStats()){
profiler.hideStats()
}else{
profiler.showStats()
}