Sprite Kit Texture Atlas:定义图像格式(RGBA4444,RGB565,...) [英] Sprite Kit Texture Atlas: Define Image Format (RGBA4444, RGB565, …)

查看:16
本文介绍了Sprite Kit Texture Atlas:定义图像格式(RGBA4444,RGB565,...)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Sprite Kit 中定义纹理图集的图像格式?

How do I define the image format of a Texture Atlas in Sprite Kit?

例如,我想将 RGBA4444 或 RGB565 设置为输出格式以减少内存使用.(例如在 TexturePacker 中.)

For example, I want to set RGBA4444 or RGB565 as the output format to reduce memory usage. (Like in TexturePacker.)

提前感谢您的帮助!

推荐答案

在您的项目构建设置中,您可以找到 Output Texture Atlas Format.

In your project build settings you can find Output Texture Atlas Format.

一步一步:

  1. 在编辑器区域中,选择您的项目并点击构建设置.
  2. 在搜索字段中输入 Sprite,然后按 Return.
  3. 只需将其设置为所需的格式:

这篇关于Sprite Kit Texture Atlas:定义图像格式(RGBA4444,RGB565,...)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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