maco1

hello, i am using Spine version 4.1.14 and i have Unity-spine runtime 4.0.x , i have exported several spine files that are practically identical, but unity allows me to create only one, it does not generate skeleton data asset, so i have to manually create it(its not a big of an issue), but on several files it just does not allow me to create skeleton animation or mechanim by drag and dropping skeleton data asset, cursor simply shows new skeleton data asset is invalid, cannot create new gameobject, without any useful logs in console, also there are some errors showing in skeleton data asset but its cut so i cant really read, :d what could i do to fix this?
You do not have the required permissions to view the files attached to this post.
maco1
  • Posts: 9

Harald

Please note that the Spine-Unity runtime version (e.g. 4.0) has to match the Spine Editor version (e.g. 4.0.07) which was used to export your skeleton files. When major+minor version numbers do not match (4.0 vs 4.1), import in Unity will fail due to format incompatibility.

Note that you can change the Spine Editor version via Spine - Settings:
Settings - Spine User Guide: Version
You can use batch-export to re-export all your skeletons quickly via the command line interface:
Export - Spine User Guide: Command line

Please also be sure to follow the Spine 4.0 to 4.1 upgrade guide to save you potential troubles:
Spine-Unity 4.0 to 4.1 Upgrade Guide
User avatar
Harald

Harri
  • Posts: 4459

maco1

thank you for the reply, i just have a lot of spine animations that are exported in 4.0 version and changing them all would take a while, also i created separate project where i used runtime 4.1 and exported 4.1 version of same animation, i found out the error was that it could automatically set atlas and was missing every region which was quite odd, because it worked just fine with similar animation

---

I think i found out the problem, i miss pronounced skins, in one project my skins were named starting with capital letters, and in other with regular ones and because of that atlas couldnt find said skins in the problematic project
maco1
  • Posts: 9

Harald

If you have all your skeletons created in Spine Editor version 4.0, the easier way would be to change the spine-unity runtime to version 4.0, instead of upgrading your assets to 4.1.
maco1 wrote: i found out the error was that it could automatically set atlas and was missing every region which was quite odd, because it worked just fine with similar animation
Are you sure that the atlas asset contains all required regions? If so, could you please share the problematic asset with us (the .atlas.txt file) and a screenshot showing which regions are missing?

Does the same problem also occur if you reset the texture export options (and again change the extension to .atlas.txt after that) and re-export the assets?
User avatar
Harald

Harri
  • Posts: 4459

maco1

asset indeed contained all required regions, but their names were off, the information that atlas had on those regions were in small caps, but the actual regions were starting with all caps, i dont know if im explaining this right, im the developer who works with spine animator, but i assume that the problem was caused by accidently renaming regions?
its all resolved now
You do not have the required permissions to view the files attached to this post.
maco1
  • Posts: 9

Harald

Thanks for getting back to us, glad to hear you've figured it out.
maco1 wrote:but i assume that the problem was caused by accidently renaming regions?
This indeed looks as if the input images have been renamed and then only the skeleton asset (the .skel.bytes or .json file) has been re-exported, but not the atlas asset, or vice versa.
User avatar
Harald

Harri
  • Posts: 4459

maco1

yes that's exactly it
maco1
  • Posts: 9


Return to Bugs