ZeroFlyFly / WaifuSpineRuntime

Unity Spine Runtime with various version support and Mihoyo / Hoyoverse Website Decoder
Other
64 stars 1 forks source link

.skel文件导入报错(.skel文件的版本3.6.52B) #5

Open djnjbjb opened 3 weeks ago

djnjbjb commented 3 weeks ago

.skel文件导入报错,Spine文件的版本是3.6.52B。(我在学习使用Spine,在网上随便下载了一个资源)

报错信息如下:

IndexOutOfRangeException: Index was outside the bounds of the array.
Spine.CurveTimeline..ctor (System.Int32 frameCount, System.Int32 bezierCount, System.String[] propertyIds) (at Assets/SpineLibrary/Spine/Runtime/spine-csharp/Animation.cs:296)
Spine.RGB2Timeline..ctor (System.Int32 frameCount, System.Int32 bezierCount, System.Int32 slotIndex) (at Assets/SpineLibrary/Spine/Runtime/spine-csharp/Animation.cs:1469)
Spine.SkeletonBinary.ReadAnimation (System.String name, Spine.SkeletonBinary+SkeletonInput input, Spine.SkeletonData skeletonData, System.Boolean isOldCurveSpine) (at Assets/SpineLibrary/Spine/Runtime/spine-csharp/SkeletonBinary.cs:1239)
Spine.SkeletonBinary.ReadSkeletonData (System.IO.Stream file) (at Assets/SpineLibrary/Spine/Runtime/spine-csharp/SkeletonBinary.cs:507)
Spine.Unity.Editor.AssetUtility.AddRequiredAtlasRegionsFromBinary (System.String skeletonDataPath, System.Collections.Generic.List`1[T] requiredPaths) (at Assets/SpineLibrary/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs:223)
Spine.Unity.Editor.AssetUtility.GetRequiredAtlasRegions (System.String skeletonDataPath) (at Assets/SpineLibrary/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs:140)
Spine.Unity.Editor.AssetUtility.ImportSpineContent (System.String[] imported, System.Collections.Generic.List`1[T] texturesWithoutMetaFile, System.Boolean reimport) (at Assets/SpineLibrary/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs:437)
Spine.Unity.Editor.AssetUtility.HandleOnPostprocessAllAssets (System.String[] imported, System.Collections.Generic.List`1[T] texturesWithoutMetaFile) (at Assets/SpineLibrary/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs:117)
Spine.Unity.Editor.SpineEditorUtilities.OnPostprocessAllAssets (System.String[] imported, System.String[] deleted, System.String[] moved, System.String[] movedFromAssetPaths) (at Assets/SpineLibrary/Spine/Editor/spine-unity/Editor/Utility/SpineEditorUtilities.cs:102)
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <8ce0bd04a7a04b4b9395538239d3fdd8>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <8ce0bd04a7a04b4b9395538239d3fdd8>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <8ce0bd04a7a04b4b9395538239d3fdd8>:0)
UnityEditor.AssetPostprocessingInternal.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) (at <50e19b0ed93a4256b2e454b4acec2d48>:0)
UnityEditor.AssetPostprocessingInternal.PostprocessAllAssets (System.String[] importedAssets, System.String[] addedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromPathAssets, System.Boolean didDomainReload) (at <50e19b0ed93a4256b2e454b4acec2d48>:0)
UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets(String[], String[], String[], String[], String[], Boolean)
ZeroFlyFly commented 4 days ago

你好,这个52b后缀的版本比较少见,可能是Spine以前的中间版本?能提供源文件吗?这样方便查查具体是什么问题。