• Editor
  • 如何只导出部分Spine的skin对应的图片

Spine项目分为3个皮肤,head,body和attach,现在希望导出的时候可以单独导出head,body和attach的图片,有什么好的方法处理这个流程吗?

Related Discussions
...

要单独导出Spine项目中每个皮肤(如head, body和attach)的图片,可以按照以下步骤进行:

  1. 导出每个皮肤的骨架:在Spine中,您可以通过启用导出标志来分别导出每个皮肤。具体来说,您需要在导出时只启用您想要导出的皮肤。这样,您的骨架在运行时只需要所选皮肤的区域。

  2. 使用纹理打包器:接下来,您可以使用纹理打包器来分别为每个皮肤创建纹理图集。为此,您需要提供一个仅包含该皮肤附件的文件夹作为输入。例如,如果您的图像文件夹结构如下:

       images/
       ├── head/
       ├── body/
       └── attach/

    您可以创建一个临时文件夹,仅包含head文件夹中的内容,然后使用纹理打包器为head皮肤创建图集。对bodyattach皮肤重复此过程。

通过这种方法,您可以确保每个皮肤的图片被单独导出和打包。

    Spinebot 感谢您这么及时的回答,如果我的项目现在images没有分子文件夹存放图片,是不是也可以通过程序将head的文件都复制出来,然后使用打包器打图集,然后用这个图集和图集文件替换原来整体导出的图集文件(包含了head,body,attach),依然可以加载到Unity里面运行。

    • Harald ответили на это сообщение.

      Spinebot 这样打出来的图集文件和图集图片,替换整体导出来的项目的图集文件和图集可行吗?整体导出的肯定是会包含完整的head body attach三个皮肤和骨骼数据的。

      • Harald ответили на это сообщение.

        mingjava Spinebot 感谢您这么及时的回答,如果我的项目现在images没有分子文件夹存放图片,是不是也可以通过程序将head的文件都复制出来,然后使用打包器打图集,然后用这个图集和图集文件替换原来整体导出的图集文件(包含了head,body,attach),依然可以加载到Unity里面运行。

        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.

        mingjava Spinebot 这样打出来的图集文件和图集图片,替换整体导出来的项目的图集文件和图集可行吗?整体导出的肯定是会包含完整的head body attach三个皮肤和骨骼数据的。

        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.