SKTextureAtlas and 3x images

2019-03-01 12: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