• Bugs
  • [unity] failed to import this file

It show the following error when adding this particular export (attachment) to Unity project.

Using latest 4.0 unity runtime.

Related Discussions
...
  • Modificato

dunno if it's related to you as i'm newbie to all this really :grinteeth: ..... but i get this error when i try to open json file in unity

What version of the editor are you currently working in, when you export from Spine to Unity and receive this error?

The problem is that your atlas is missing an atlas region Hand_R_2:

Did you perhaps accidentally delete an attachment image before exporting your skeleton assets?

I also just noticed that the Resolve atlases.. button did not load recently created (currently imported) atlas assets that are selected in the file browser on any newer Unity versions. Thus the error message was not helpful at all, listing all atlas regions as missing as if no atlas asset was selected at all. We are sorry for the inconvenience! We just fixed this issue and improved the error description, it now shows the missing regions again as displayed in the above screenshot.

New 4.0 and 4.1-beta unitypackages are available for download here as usual:
Spine Unity Download

This issue has been tracked under this issue ticket URL:
https://github.com/EsotericSoftware/spine-runtimes/issues/2024

so what about me guys, i exported json with same settings i always export with ........with version 4.0.49 and also tried latest version and when i import in unity and click on json i get this message but atlas and rest of files are imported normally ..... just json 😢 :think:

@[cancellato]
Ah I see. I am exporting my files via command line thus there is no export warning pop up to remind me about missing attachment during export. Fixing the error message is good enough for the situation as long as I can identify the source of the problem.
Thanks

ahmed ali ha scritto

so what about me guys

How about creating a separate topic with your trouble? And attach the problematic file there or send it to contact@esotericsoftware.com

@[cancellato]
Glad it helped, thanks for reporting your issue.

@ahmed ali
Sorry, I misunderstood your initial posting. I thought you wanted to help Nick and tried his file but received your above error message.
For this reason, it's better to start a new thread if you are unsure whether a problem is related or not, i.e. if you receive a completely different error message. Regaring your error message: your problem does not seem spine-unity related, but rather a problem of Unity reading your file. We would recommend searching the official Unity forums for any hint on the subject. Please check whether read-access to this file is properly provided or whether source control perhaps caused some problems in this regard.