• RuntimesUnity
  • Unable to Import Spine Binary Files in Unity

I am trying to import files from Spine 2D to Unity on Binary Format. Once I get the files and I import them into Unity I get these errors.
Can you please check if I imported the correct files? I have attached the spine project file and the imported files as well.

I really appreciate all the help.

skeletonatlas.txt
25kB

skeletonskel.bytes
578kB
    Related Discussions
    ...

    To import Spine binary files into Unity, ensure that the binary file has the correct extension .skel.bytes, as Unity requires this specific format to recognize the file. From your description, it seems you have the necessary files: skeletonatlas.txt, skeleton.png, and skeletonskel.bytes. Make sure all these files are placed in the same directory within your Unity project. Additionally, verify that the versions of the Spine Editor and the spine-unity runtime match, as mismatched versions can lead to import errors. If you continue to experience issues, check the Unity console for any specific error messages that might provide further insight into the problem.

    Muzish Hmmm, I thought the cause might be a wrong extension, but even after fixing it, I couldn't import it properly. In fact, according to the version number written in this skeleton data file, it was created with 3.8.33-beta, so it may not import well with the latest spine-unity 3.8.

    I also tried to see if I could import this skeleton data file into 3.8.99, but an error occurred there as well. It may be possible to import in 3.8.33-beta, but unfortunately we have already deleted the old beta version of the editor and can no longer check. I am not sure if you are the creator of this skeleton, but if you are not, you might try to contact the creator and request to open the original Spine project with a newer Spine version such as 3.8.99 and re-export it.

    Muzish The skeleton data file in the .rar file you shared with us does indeed appear to be data created in version 3.7.89, and I was able to successfully import it into Spine 3.7.94 (the latest 3.7).
    For your information, to tell you how you can check the version of the skeleton data, open the binary format file in any text editor and you will find a number at the beginning of the file that indicates the version number:

    This data looks fine and should work fine with the spine-unity 3.7 runtime. However, if your other skeleton data is exported from Spine 3.8, it is a bit tricky. In this case, I recommend that you import the 3.7 data into Spine 3.7, save it as a Spine project, and reopen it in Spine 3.8 to update the version.