• RuntimesUnityBugs
  • 一个关于AtlasAsset for skeleton的错误,导致SkeletonData无法获取material


foxgirl.zip
2MB

问题出现在导入环节,导入时会提示错误。如果我选择 resolve 就会出现上图中提示。即使我尝试选择asset,他依然不能得到修复。这种情况我从来没遇到过,不过值得一提的是我使用了stable diffusion的ai绘画 作为美术资产生成,我不确定问题是否出自这里。
我将问题文件上传到附件,希望能获得解答,十分感谢 !!!

    Related Discussions
    ...

    nona 我检查了所附的.zip文件,但我不确定你想做什么。Spine项目的版本是3.8.99,但你说的skeleton.json是用Spine 4.1.23导出的。如果你在Unity项目中使用的spine-unity运行时的版本是3.8,那么用4.1导出的骨架不能被导入。如果你只是用错误的编辑器导出了它,请运行Spine 3.8.99并重新导出。如果你试图升级到4.1,请根据文档中的"更新spine-unity运行时"一节来升级你项目中的spine-unity运行时:https://zh.esotericsoftware.com/spine-unity#%E6%9B%B4%E6%96%B0spine-unity%E8%BF%90%E8%A1%8C%E6%97%B6


    I checked the attached .zip file but I am not sure what you are trying to do. The version of the Spine project is 3.8.99, but the skeleton.json that you say gives you the error is exported using Spine 4.1.23. If the version of the spine-unity runtime you are using in your Unity project is 3.8, then the skeleton exported with 4.1 cannot be imported. If you simply exported it with the wrong editor, please run Spine 3.8.99 and re-export. If you are trying to upgrade to 4.1, please upgrade the spine-unity runtime in your project according to the Updating the spine-unity Runtime section in the documentation: http://esotericsoftware.com/spine-unity#Updating-the-spine-unity-Runtime

    • nona a répondu à ça.

      Misaki

      38fox.zip
      3MB

      十分抱歉,可能我操作有点误导性,我只是在尝试其他版本是否会有相同的情况,所以我文件有两个版本。实际上我只需要在3.8.99版本下运行,但导入后仍然会出现导入后SkeletonData无法获取material的情况,即便我按照官方文档的提示设置了文件后缀。我运行的unity版本为2020.3.47f1c1。我将导入操作的视频以及出问题的3.8.99的文件置入附件。

        nona 谢谢你提供的补充信息。我可以重现你所附的骨架文件无法设置AtlasAsset的错误,但扩展名之类的都没有问题,所以看起来骨架导出时出了问题。事实上,纹理无法用Spine编辑器的纹理解包器解包,看起来图集文本文件和纹理图集页面(png)之间一开始就有一些信息不同。你确定这个纹理图集和页面是在同一时间导出的吗?是其中一个较新的还是较旧的数据,比如说,由于输出文件夹的一些变化?如果你确定它们是同时导出的,而你仍然看到这个错误,请通过电子邮件将带有图像文件的Spine项目文件发送给我们,以便我们可以尝试导出你的骨架:contact@esotericsoftware.com


        Thank you for the additional information. I can reproduce the error of not being able to set AtlasAsset with the skeleton file you attached, but the extensions and such are fine, so it looks like something is wrong when the skeleton is exported. In fact, the texture cannot be unpacked with the texture unpacker of the Spine editor, and it looks like there is some information different between the atlas text file and the texture atlas page (png) to begin with. Are you sure that this texture atlas and the page are exported at the same time? Is one of them newer or older data, for example, due to some change in the output folder? If you are sure that they were exported at the same time and you continue to see the error, please send us the Spine project file with the image files via email so that we can try to export your skeleton: contact@esotericsoftware.com

        nona 谢谢你发送你的Spine项目文件。

        首先,那个Spine项目在我这边可以正常导出,即使图像路径被设置为 "img "文件夹。作为证明,我已经将导出的文件以 "exported-JSON.zip "的形式通过电子邮件发送,所以请解压并尝试将导出的文件导入到你的Unity项目。
        我相信我的环境和你的环境之间的差异可能是文件的路径问题。我怀疑出了问题,因为路径中含有中文或指向E盘。你能不能试着把文件移到一个路径不包含中文的地方,或者移到一个本地磁盘,比如C盘,看看能不能成功导出?

        关于导出PSD文件(00344-764579771.psd)时的错误,我可以确认我可以重现它,但它不是一个错误。这个错误只是让你知道有一些层有相同的名字。Spine不允许同名的附件存在于同一个皮肤中,所以脚本在这种情况下会显示一个错误。我在邮件中附上了一张截图,这就是你看到的错误,请重新命名图层,这样就不会出现与其他图层同名的情况。

        如果你继续遇到错误,我们很乐意继续支持你,所以请提供有关问题的进一步信息。


        Thank you for sending your Spine project files.

        First, that Spine project can be exported fine on my end, even if the image path is set to the "img" folder. As proof, I have sent the exported file as a .zip file via email so please unpack it and try to import the exported files to your Unity project.
        I believe the difference between my environment and yours is probably the path of the files. I suspect that something is wrong because the path contains Chinese or points to the E drive. Could you try moving the files to a location where the path does not include Chinese or to a local disk such as the C drive to see if it can be exported successfully?

        Regarding the error when exporting the PSD file(00344-764579771.psd), I can confirm that I can reproduce it, but it is not a bug. The error just lets you know there are layers which have the same name. Spine does not allow attachments with the same name to exist within the same skin, so the script displays an error if it is the case. I have attached a screenshot to my email, and it is the error that you saw, please rename the layers so that there are no layers that have the same name as the others.

        If you continue to experience errors, we happily continue to support you, so please provide further information about the problem.

        nona 我已经找到了原因。你在你的纹理打包器设置中启用了 使用索引,但在正常使用情况下应该不需要。如果你对这个选项的目的感兴趣,请看文档以了解更多信息:https://zh.esotericsoftware.com/spine-texture-packer#%E5%9B%BE%E7%89%87%E7%B4%A2%E5%BC%95

        请禁用它,重新打包纹理图集并尝试重新导入骨架文件。


        I have found the cause. You are enabling Use Indexes in your texture packer settings, but this should not be needed for normal use cases. If you are interested in the purpose for this option, please see the documentation for more information: http://esotericsoftware.com/spine-texture-packer#Image-indexes

        Please disable it, re-pack the texture atlas and try to re-import the skeleton files.