SKTextureAtlas and 3x images

寵の児 提交于 2019-12-20 05:43:17

问题


Has anyone been able to get the simulator in xcode 6 to use the 3x images inside of an atlas? Whenever I load them into SKTextureAtlas it will use the 2x image instead.

if i put test@2x.png, and test@3x.png inside of an atlas, my iphone 6 / plus simulator will always use the 2x image.

let texture = shipAtlas.textureNamed("ship")  // always uses 2x image

回答1:


apparently you need to have launch images set (in project settings) in order for xcode to recognize different screen sizes properly



来源:https://stackoverflow.com/questions/25940788/sktextureatlas-and-3x-images

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