问题
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