Custom texture dimensions using TexturePacker and Cocos2D

帅比萌擦擦* 提交于 2019-12-12 04:37:31

问题


When I switched from POT to any size in TexturePacker, per this question, Cocos2D starting throwing this warning:

cocos2d: WARNING. Current texture size=(1613,2047). Convert it to size=(1614,2047) in order to save memory
cocos2d: WARNING: File: units_black-hd.pvr.ccz
cocos2d: WARNING: For further info visit: http://www.cocos2d-iphone.org/forum/topic/31092

I cannot figure out how to explicitly set a texture size in TexturePacker so that it meets these constraints. POT fixes it, of course, but it increases the size of each of my sprite sheets by ~1Mb, which I would prefer to avoid.


回答1:


The Force word aligned option (hidden in the Advanced Settings of the Layout section) fixes this!



来源:https://stackoverflow.com/questions/25464398/custom-texture-dimensions-using-texturepacker-and-cocos2d

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!