In cocos2d it's possible to change texture format using
[CCTexture2D setDefaultAlphaPixelFormat:kCCTexture2DPixelFormat_RGBA8888];
Is there any way to change texture format in Sprite Kit? I would like to generate sprite sheets using RGBA4444, but I can't find a way to set texture format in Sprite Kit.
Thanks
If you are using a Texture Atlas, you can change the "Output Texture Atlas Format" in the Build Settings. Take a look at this answer: https://stackoverflow.com/a/21626731/867635
Or use a program like TexturePacker to create and export your sprite sheets in the desired format.
But I don't think it's possible do that directly from code. At least the public Spite Kit API doesn't offer that kind of method / property.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.