• RuntimesGodot
  • 从非工程目录导入资源有问题

在官方第13例子中,我改变资源目录为非工程目录下,发现无法找到png资源,如图


  • Misaki відповіли на це.
    Related Discussions
    ...

    nicecook Could it be that the .atlas file itself is read correctly, but the png path does not match what is written in the .atlas file? Please open the .atlas file in a text editor and check the path:


    the path is Ok

    • Misaki відповіли на це.

      nicecook I see, so could you please send us the files to reproduce the problem on our end?: contact@esotericsoftware.com
      Please include the URL of this forum thread in the email so we know the context. Then we can take a look at what's wrong.

      I have sent an email

      • Misaki відповіли на це.
      • Misaki вподобали це.

        nicecook Thanks for sending us your skeleton files! We'll check to see if we can reproduce the problem, but just to let you know, you seem to be using Spine 4.2.22 to create your skeleton, so I'd like to let you know that you should be using the latest patch version of the editor.
        Updating to the patch version is always safe, and there are many bug fixes between 4.2.22 and the latest version (4.2.40), so please update your editor.

        nicecook I have replied to your email earlier, but I was unable to reproduce the problem with your skeleton files. Please check the email, as I have attached a screenshot to show that it was displayed correctly in Godot.
        So I think it is possible that Godot does not have access to the files on your D drive. Could you try moving the files to a different location and changing the path to see if that works?

          Misaki 看起来并不是,放在D盘中的图集和骨骼文件都可以读取到,只是对应的png无法获取

          • Misaki відповіли на це.

            nicecook Could you try to see if it works with a different skeleton? Unfortunately, I have not been able to reproduce the problem with the skeleton file you provided, so I have no leads.

              Misaki 仍然 感谢,我去研究spine godot 运行时源码,看看能否找到答案

              • Misaki вподобали це.