SKTextureAtlas and 3x images

2019-03-01 11:33发布

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条回答
我命由我不由天
2楼-- · 2019-03-01 12:01

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

查看更多
登录 后发表回答