Is it possible to turn on field debug drawing for SpriteKit in Xcode?

南楼画角 提交于 2020-02-15 20:19:06

问题


Is it possible to turn on field dubug drawing for SpriteKit in Xcode? I mean something like a picture below (it is from WWDC2014, session 608).


回答1:


Add the following to your view controller

Swift:

skView.showsFields = true

ObjC:

skView.showsFields = YES;


来源:https://stackoverflow.com/questions/33712852/is-it-possible-to-turn-on-field-debug-drawing-for-spritekit-in-xcode

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