• Bugs
  • "The requested value 'clipping' was not found."

Hi
Just finished an animation using clipping for the first time and exported the json but got this huge error mess when it was brought into unity. I made the clipper as instructed in the tutorial and it works great in Spine. As soon as I deleted the clipper, the import went perfectly fine. Have I done something wrong with the clipper? Am I supposed to be keying somewhere or?

ArgumentException: The requested value 'clipping' was not found.
System.Enum.Parse (System.Type enumType, System.String value, Boolean ignoreCase) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Enum.cs:692)
Spine.Unity.Editor.SpineEditorUtilities.GetRequiredAtlasRegions (System.String skeletonDataPath) (at Assets/3rdParty/Spine/spine-unity/Editor/SpineEditorUtilities.cs:799)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Also

Error reading skeleton JSON file for SkeletonData asset: New SkeletonData
Error reading attachment: BellyClipper, skin: default
 at Spine.SkeletonJson.ReadSkeletonData (System.IO.TextReader reader) [0x00bb7] in C:\X\X\Assets\3rdParty\Spine\spine-csharp\SkeletonJson.cs:257
 at Spine.Unity.SkeletonDataAsset.GetSkeletonData (Boolean quiet) [0x001b0] in C:\X\X\Assets\3rdParty\Spine\spine-unity\Asset Types\SkeletonDataAsset.cs:167 
UnityEngine.Debug:LogError(Object, Object)
Spine.Unity.SkeletonDataAsset:GetSkeletonData(Boolean) (at Assets/3rdParty/Spine/spine-unity/Asset Types/SkeletonDataAsset.cs:173)
Spine.Unity.Editor.SkeletonDataAssetInspector:CreatePreviewInstances() (at Assets/3rdParty/Spine/spine-unity/Asset Types/Editor/SkeletonDataAssetInspector.cs:612)
Spine.Unity.Editor.SkeletonDataAssetInspector:InitPreview() (at Assets/3rdParty/Spine/spine-unity/Asset Types/Editor/SkeletonDataAssetInspector.cs:604)
Spine.Unity.Editor.SkeletonDataAssetInspector:OnInteractivePreviewGUI(Rect, GUIStyle) (at Assets/3rdParty/Spine/spine-unity/Asset Types/Editor/SkeletonDataAssetInspector.cs:657)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Related Discussions
...
  • Изменено

Are you using an old version of Spine Unity?
Clipping was added with Spine 3.6. Your runtime always needs to match the version your exported your skeleton from, especially when using binary.
If you have recent versions, you should see a "version.txt" in your Spine or spine-unity folder in the project.