Spine项目分为3个皮肤,head,body和attach,现在希望导出的时候可以单独导出head,body和attach的图片,有什么好的方法处理这个流程吗?
如何只导出部分Spine的skin对应的图片
要单独导出Spine项目中每个皮肤(如head, body和attach)的图片,可以按照以下步骤进行:
导出每个皮肤的骨架:在Spine中,您可以通过启用导出标志来分别导出每个皮肤。具体来说,您需要在导出时只启用您想要导出的皮肤。这样,您的骨架在运行时只需要所选皮肤的区域。
使用纹理打包器:接下来,您可以使用纹理打包器来分别为每个皮肤创建纹理图集。为此,您需要提供一个仅包含该皮肤附件的文件夹作为输入。例如,如果您的图像文件夹结构如下:
images/ ├── head/ ├── body/ └── attach/
您可以创建一个临时文件夹,仅包含
head
文件夹中的内容,然后使用纹理打包器为head
皮肤创建图集。对body
和attach
皮肤重复此过程。
通过这种方法,您可以确保每个皮肤的图片被单独导出和打包。
You can use the texture packer via folder structure (see the links in this forum posting). Just move or via a script copy your attachment images into some separate subfolders and run texture packing on the parent folder. Then your subfolders will be packed to separate atlas texture pages while sharing a single atlas (.atlas.txt
file).
I'm not sure machine translation of what you're asking was accurate, so if you have a different question, please describe your problem in more detail.
This unfortunately did not translate well via machine translation. Please be more verbose and explain in more detail, also showing a diagram like this by spinebot of what your current and desired structure looks like:
Spinebot images/
├── head/
├── body/
└── attach/
Likely the question is answered by what I wrote above regarding packing by folder structure however.