SKTextureAtlas和3x图像 [英] SKTextureAtlas and 3x images

查看:191
本文介绍了SKTextureAtlas和3x图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人能够使用xcode 6中的模拟器来使用地图册中的3x图像?每当我将它们加载到SKTextureAtlas中时,它将使用2x图像。

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.

如果我将test@2x.png和test@3x.png放在地图集中,我的iphone 6 / plus模拟器将始终使用2x图像。

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


推荐答案

显然你需要设置启动图像(在项目设置中)才能让xcode识别出不同的颜色屏幕尺寸正确

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

这篇关于SKTextureAtlas和3x图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆