How to hide FPS numbers in bottom left of screen in Cocos2d

前端 未结 7 2052
囚心锁ツ
囚心锁ツ 2021-02-07 20:46

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.

相关标签:
7条回答
  • 2021-02-07 21:46

    if your app delegate.. Look for

        [director setDisplayFPS:YES];
    

    change it to

        [director setDisplayFPS:NO];
    

    or you can call this anywhere like the previous answer:

        [[CCDirector sharedDirector]setDisplayFPS:NO];
    
    0 讨论(0)
提交回复
热议问题