如何在Cocos2d中隐藏屏幕左下角的FPS编号 [英] How to hide FPS numbers in bottom left of screen in Cocos2d
本文介绍了如何在Cocos2d中隐藏屏幕左下角的FPS编号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我制作cocos2d游戏时,如何摆脱屏幕左下方的数字?这可能是一个新的问题,但仍然是。
How do I get rid of the numbers in the bottom left of the screen when I am making a cocos2d game? This is probably a newb question, but still.
推荐答案
当您创建初始cocos项目。但这应该在任何地方工作:
There is a ShowFPS var in one of the files when you create the initial cocos project. But this should work from anywhere:
[[Director sharedDirector] setDisplayFPS:NO];
这篇关于如何在Cocos2d中隐藏屏幕左下角的FPS编号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文