• EditorBugs
  • Unity: materials not set for atlas asset: sub-anim_Atlas

Can't import spine project into unity

spine-export.zip
81kB

I made a new project in unity 2022.1.16f1 and imported the json export. Other spine examples and projects will load but I don't understand why this one won't.

Editor information

4.1.23

posted the spine export files
    Related Discussions
    ...

    Solgryn I'm sorry to hear you're having trouble. If you don't mind, could you please send the skeleton data files to us via email?: contact@esotericsoftware.com
    If you could send it to us, I will check it as soon as possible.

    @Solgryn Thanks for providing the reproduction assets. Unfortunately we were unable to reproduce the issue by copying these assets over into a Unity project using the latest 4.1 spine-unity runtime. It was imported without any issues on both a Unity 2022.1.22 project and a 2020.3 project.

    Could you please check whether you're using the latest version of the 4.1 spine-unity runtime? You can find the version number in the Assets/Spine/version.txt file if installed via the unitypackage, or in the Unity Package Manager if installed there.

    Okay I've sent all the files concerning this bug to the mail thank you!

    I checked the versio nand it says 4.1.x

    @Solgryn Thanks for sending the reproduction package, we received everything and can now reproduce the issue. We have created an issue ticket here where you can subscribe to receive notifications upon any updates:
    EsotericSoftware/spine-runtimes2310
    We will let you know here on the forum once we have a bugfix ready. Thanks for reporting!

    I checked the versio nand it says 4.1.x

    Please note that this is not the package version. The package version is the second line in the mentioned version.txt file:

    This Spine-Unity runtime works with data exported from Spine Editor version: 4.1.xx
    Package version: spine-unity-4.1-2023-06-14.unitypackage

    We have updated the packaging automation scripts so that the Package version: .. line is the first in the file, perhaps this helps with future releases going forward 🙂.

    Thank you for looking into it

    Is there any workaround to export this project to use? I've made multiple new projects in different unity versions to no avail, I suppose the spine project is cursed somehow D: I need to implement it for a client

    @Solgryn Actually it turned out that something else was the problem, not other preprocessor scripts of Unity packages: The Spine Preferences Default Shader name that is stored in the Assets/Editor/SpineSettings.asset file was set to a Universal RP/Spine/.. shader which does not exist in your reproduction project, since the Spine URP Shaders UPM package is not added to the project. The bug was suddenly strangely fixed by opening the Edit - Preferences - Spine window, which automatically corrects the shader name when the asset is not found, which at first led us a bit astray.

    Anyway, we just released a bugfix for this issue (for both 4.1 and 4.2-beta), using several fallbacks when the default shader set in SpineSettings can't be found. New unitypackages are available for download here as usual:
    https://esotericsoftware.com/spine-unity-download
    Please let us know if this resolves the issue on your end as well. Thanks for reporting!