Is there a way to change the font and location of SpriteKit debug data?

风流意气都作罢 提交于 2019-12-10 06:41:03

问题


Basically what it says in the title.

Is there a way to change the font and or location of SpriteKit debug data?

The data that we set in the viewController:

skView.showsFPS = YES;
skView.showsNodeCount = YES;
skView.showsDrawCount = YES;

回答1:


You can add such debugging information to the scene by yourself: https://developer.apple.com/library/ios/documentation/GraphicsAnimation/Conceptual/SpriteKit_PG/Actions/Actions.html

Example: Adding a Debugging Overlay section.




回答2:


No. Those are all part of the SKView class which offers no user changeable attributes in regards to the above 3 items.



来源:https://stackoverflow.com/questions/23305959/is-there-a-way-to-change-the-font-and-location-of-spritekit-debug-data

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!