I suspect you will need the project file for this, but I will do my best to explain what happens and what I have done.
We have a problem with spine export and unity, although I suspect the issue is todo with the spine editor.
we are running spine 3.5.36
When we export a character, there is no error messages. however. when we open unity we get this message
Error reading skeleton JSON file for SkeletonData asset: Zombie_SkeletonData
Error reading attachment: torso_damage, skin: wakeup
at Spine.SkeletonJson.ReadSkeletonData (System.IO.TextReader reader) [0x00b4d] in C:\Projects\unityproject\Unity\Assets\spine-csharp\SkeletonJson.cs:256
at Spine.Unity.SkeletonDataAsset.ReadSkeletonData (System.String text, AttachmentLoader attachmentLoader, Single scale) [0x00017] in C:\Projects\unityproject\Unity\Assets\Spine\spine-unity\SkeletonDataAsset.cs:195
at Spine.Unity.SkeletonDataAsset.GetSkeletonData (Boolean quiet) [0x000e6] in C:\Projects\unityproject\Unity\Assets\Spine\spine-unity\SkeletonDataAsset.cs:150
UnityEngine.Debug:LogError(Object, Object)
Spine.Unity.SkeletonDataAsset:GetSkeletonData(Boolean) (at Assets/Spine/spine-unity/SkeletonDataAsset.cs:154)
Spine.Unity.SkeletonRenderer:Initialize(Boolean) (at Assets/Spine/spine-unity/SkeletonRenderer.cs:204)
Spine.Unity.SkeletonRenderer:Awake() (at Assets/Spine/spine-unity/SkeletonRenderer.cs:160)
diffing the old json
and newly exported json
it shows that the attachment does not exist in the new json. it just didn't export it.
Our higherarchy in spine looks like this (up until the problem attachment)
Loading Image
Changing the path of this attachment to another skin exports correctly . i.e. changing it from wakeup/torso_damage
to other/torsodamage
Deleting the attachment exports correctly (not an option) (errors on a different attachment)
however:
Deleting the attachement, dragging the same image into the skeleton from the images node
, does not export correctly - regardless to where this image is dragged to in the hierarchy of the skeleton.
Changing it from a mesh to an image does not export correctly.
changing the filename of the source image and dragging a new one in, does not export correctly,
duplicating a working image, then replacing it (copy paste broken image in photoshop) then saving it to a new filename, dragging into the hierarchy does not export correctly. (we where thinking it was some strange png setting or something)
any thoughts?
we might be able to send some form of project to you if you think it will help??