Disable stats display

How can i disable stats display in bottom left in cocos creator?

cc.director.setDisplayStats(false);

Although if you build the project without debug option checked, it will automatically be hidden.
Stats are only present in preview run and debug builds.
But the above mentioned code can override the default behaviour as per your need.

1 Like

I use Cocos Creator ver 2.0.x
and cant use that solution for fix this problem
I search in cocos creator API in cc.director but I cant find setDisplayStats(boolean) in it

Finally, I find a solution
cc.debug.setDisplayStats(false);

tks @shishir451