cmd - 纹理打包器命令行多图像

标签 cmd texturepacker

我从命令行使用TexturePacker,但无法让它将多个 Sprite 打包到一张纸中。它允许我执行 1 个 Sprite ,因此命令没问题。

这是我正在使用的命令。

"TexturePacker --format sparrow --texture-format atf --opt DXT5 --max-width 2048 --max-height 2048 --size-constraints POT --pack-mode Best --enable-rotation --trim-mode Trim --algorithm MaxRects --multipack --border-padding 5 --shape-padding 5 --reduce-border-artifacts --scale " + sheetInfo.scale + " --data " + imageOutputDirectory + "\" + lanfPrefix + "\" + sheetInfo.name + ".xml " + "--sheet " + imageOutputDirectory + "\" + lanfPrefix + "\" + sheetInfo.name + ".atf image1.png image2.png";

有什么想法为什么这不起作用吗?根据文档,它应该可以工作。

最佳答案

我无法找到任何真正的方法来解决这个问题,甚至联系了纹理打包器的开发人员,但没有得到回应。相反,我能够通过将所有需要的文件复制到临时目录,然后将该目录添加到纹理打包器调用的末尾而不是单个图像来实现所需的结果。

关于cmd - 纹理打包器命令行多图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30769102/

相关文章:

python - Cmd Windows "python"命令有效,但 "python3"无效,尽管我的 python 版本是 3.6

windows - 为 Windows 编写控制台样式应用程序的好资源?

express - 错误 : listen EACCES 0. 0.0.0 :8080 but can't find PORT?

ios - 当 Cocos2D 2.0 支持 NPOT 纹理时,为什么要使用纹理图集?

java - libgdx 加载资源、纹理打包器

c++ - Cocos2d-x TMX map 与游戏 Sprite 共享纹理图像文件?

python - 如何在不脱离控制台的情况下在 Windows 中使用 Python 执行 os.execv()?

python - 关于为什么 os.system() 会失败的任何想法?

javascript - PIXI.js AnimatedSprite 在第一次播放时滞后

android - 在 andengine 中使用 Texture Packer 加载动画